SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    Non-Member redhits's Avatar
    Join Date
    May 2004
    Location
    Romania
    Posts
    301
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Difference between split and explode?

    what should I use explode() or split()
    can somebody explain me the diferences between this 2?

  2. #2
    Sell crazy someplace else markl999's Avatar
    Join Date
    Aug 2003
    Location
    Manchester, UK
    Posts
    4,007
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    From the manual:
    split -- Split string into array by regular expression
    explode -- Split a string by string

  3. #3
    SitePoint Guru
    Join Date
    Dec 2003
    Location
    oz
    Posts
    819
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    1. When you post a message thread, use a title that explains the problem to some degree like "Difference between split and explode?" - not just the word "why". You waste our time because we have to open it up to find out what it is about rather than see what it is if it doesnt' concern us so we can skip it; also
    2. Don't ask about syntax issues in the advanced forum - ask it in the regular php section.

  4. #4
    SitePoint Wizard
    Join Date
    Oct 2001
    Posts
    2,686
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I have moved the thread and changed it's title.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •