What are the differences between explode(), split(), and eregi() functions in PHP?
The explode() function is used to split a string into an array based on a specified delimiter. The split() function is deprecated in PHP and should not be used. The eregi() function is used to perform a case-insensitive regular expression match.
// Using explode() function
$string = "apple,banana,orange";
$array = explode(",", $string);
print_r($array);