php - Converting indexed array to normal or simple array -
i trying convert indexed array normal array. is:
array ( [0] => 14 [1] => 19 [2] => 20 )
and need is:
array(14,19,20);
i tried on google not information found. think kind of function isn't available in php, there any? please let me know!
thanks, asif
you're chasing shadows:
both of arrays you've shown equal.
there no such thing unindexed array in php.
but if want sure, use $newarray = array_values($array)
Comments
Post a Comment