SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Help please...

  1. #1
    SitePoint Member edpudol's Avatar
    Join Date
    Oct 2004
    Location
    philippines
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help please...

    I have form with textarea I want the value on text area to load in array per line.

    For example I lod in text area

    This line 1
    This line 2
    This line 3
    An so on

    I want them to store in array line by line. How could I do this any sample script?

    Thanks
    Visit us at lexorsoft.net , if you need SEO related services

  2. #2
    SitePoint Evangelist anjanesh's Avatar
    Join Date
    Jun 2004
    Location
    Mumbai
    Posts
    447
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Code:
    $arr = explode("\n", $textarea);
    OR
    $arr = explode("\r\n", $textarea);
    Anjanesh

  3. #3
    SitePoint Member edpudol's Avatar
    Join Date
    Oct 2004
    Location
    philippines
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks pal that's works...
    Visit us at lexorsoft.net , if you need SEO related services


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
  •