How can one create an array from a string in PHP?

To create an array from a string in PHP, you can use the `explode()` function. This function splits a string into an array based on a specified delimiter. You simply need to pass the delimiter and the string you want to split as arguments to the `explode()` function.

$string = "apple,banana,orange";
$array = explode(",", $string);
print_r($array);