What is the difference between Split and Explode

Showing Answers 1 - 6 of 6 Answers

Brajmohan Kumar

  • Mar 26th, 2007
 

split() can work using regular expressions while explode() cannot.

munai

  • Oct 23rd, 2008
 

Both the functions are used to Split a string. However, Split is used to
split a string using a regular expression. On the other hand, Explode is used to
split a string using another string.


e.g explode (" this", "this is a string"); will return “Is a string”
Split (" + ", "This+ is a string")


window.google_render_ad();

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions