php array obj to array id code example Example: php transform associative array to array $array = array_values($array);