Had a hard time wording this in google so I figure ill ask here.
I have an array like such:
Array ( [a] => \'a\' [b] => \'b\' [c] => \'c\' )
Use array_values(), as in the manual example:
<?php
$array = array("size" => "XL", "color" => "gold");
print_r(array_values($array));
The above example will output:
Array
(
[0] => XL
[1] => gold
)
$my_array = array( [a] => 'a' [b] => 'b' [c] => 'c' )
$my_new_array = array_values($my_array);
You want the array_values function.
Try array_values
$arrayWithNumericKeys = array_values($arrayWithRegularKeys);