What is the difference between explode (); and split(); methods ?

Both the functions are used to Split a string.

The split() function splits the string into an array using a regular expression and returns an array
eg : $array = split(“\.”,”123.456.789.000″);
print_r($array);
OUTPUT : Array ( [0] => 123 [1] => 456 [2] => 789 [3] => 000 )

Explode() function is used to split a string using another string
eg : $array = explode(“.”,”123.456.789.000″);
print_r($array);
OUTPUT : Array ( [0] => 123 [1] => 456 [2] => 789 [3] => 000 )