What is the difference between the split function in VB and the explode function in PHP?

The split function in VB is used to split a string into an array of substrings based on a specified delimiter. On the other hand, the explode function in PHP serves the same purpose, but it takes the string to be split as the first parameter and the delimiter as the second parameter. The main difference is that the explode function in PHP is more commonly used and widely supported compared to the split function in VB.

// Using explode function in PHP
$string = "apple,banana,orange";
$fruits = explode(",", $string);

print_r($fruits);