Split() function splits the string into an array using a regular expression and result will be an array. Explode() function splits the string by string and result will be an array. O/P will be Array ( [0] => India [1] => USA [2] => UK ) Array ( [0] => India [1] => USA [2] => UK )
Comments
Post a Comment