Is there any PHP function that can be used in my case ?
Currently I have this array :
array( "1" => "22", "2" => "4", "3" => "0" );
And I need to keep the values and not the keys :
EDIT (array('votes' => array("22","4","0"));
I've seen that there is the array_values but it retunrs a 2 dimensional array.
Thanks
array_valuesmost certainly does not return a 2 dimensional array. It's as 1-dimensional as a PHP array gets; that is, it had numeric sequential keys starting at 0.