php Delete arrays that does not have value -
this question has answer here:
very simple question,
i have array in php :
array ( [0] => example [3] => example [5] => example }
the order of array : 0 - 3 - 5
but must :
array ( [0] => example [1] => example [2] => example }
how can ?
if want "reset" keys, use array_values()
:
$reindexedarray = array_values($array);
Comments
Post a Comment