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 -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -