How can PHP's explode() function be used to split a string into an array without keys?
When using PHP's explode() function to split a string into an array, by default it assigns numerical keys to the array elements. If you want to split the string into an array without keys, you can achieve this by using the array_values() function on the result of explode().
$string = "apple,banana,orange";
$array = explode(",", $string);
$arrayWithoutKeys = array_values($array);
print_r($arrayWithoutKeys);