You could use this simple piece of code, if you do not want to use the inbuilt PHP function.
$input_array; // This is your input array
$output_array = []; // This is where your output will be stored.
foreach ($input_array as $k => $v){
array_push($output_array, $v);
}
print_r($output_array);