Hello community I have a array
ordered ALPHABETICALLY but if the name is repeated twice jose - jose create a% new array
with key
of J
ie array
with the first letters of each name if it is repeated, that name is assigned to the same array
since it can have a repeated name but a different last name.
array
array(
array(
"id" => "30",
"name" => "kiosera",
"second_name" => "delim",
"lastname"=> "kinsi"
),
array(
"id" => "30",
"name" => "king",
"second_name" => "surrd",
"lastname"=> "kinsi"
), array(
"id" => "30",
"name" => "gustavo",
"second_name" => "simplify",
"lastname"=> "kinsi"
), array(
"id" => "30",
"name" => "grandi",
"second_name" => "simplify",
"lastname"=> "kinsi"
)
)