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

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

How do you convert a timestamp into a datetime in python with the correct timezone? -