View Single Post
  #57 (permalink)  
Old 11-09-2007, 01:00 AM
venkat_charya venkat_charya is offline
D-Web Sr.Programmer
 
Join Date: Mar 2007
Posts: 118
venkat_charya is on a distinguished road
Thumbs up Re: string functions and manipulations in php

Quote:
Originally Posted by Jeyaseelansarc View Post
What is the difference of using explode and split in PHP?
I know that both are converting a string into array
Hi Jeyaseelansarc,

Yes, both are used to convert a string into array. But there is one major difference what i know is regular expression usage.

explode is used string by string while Split is used to split string into array by regular expression.

In search pattern we can use regular expression while using split but we can not able to do the same in explode.

Thanks
__________________
K K Venkata Charya
Success is easy to get but difficult to retain
Reply With Quote