php - convert associate array to normal array -


this question has answer here:

this array

$array = array(         1 => 'a',          2 => 'b',          3 => 'c',          4 => 'd',          5 => 'e',      ); 

i want convert

array('a','b','c','d','e'); 

use array_values function:

$array = array_values($array); 

i hope helpful.


Comments