Convert an associative array to a simple array of its values in php

simply use array_values function:

$array = array_values($array);

Leave a Comment