SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    googlicious graymatter bvarvel's Avatar
    Join Date
    Sep 2002
    Location
    Katy, TX
    Posts
    956
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need Some Help Extracting Date from a LONG string...

    I've got the following string of data that I need to extract... the list is very long, so I'd prefer to automate it all...

    $list = "First Last <website>, First Last <website>, First Last <website>, First Last <website>, First Last <website>, First Last <website>, First Last <website>, First Last <website>, First Last <website>, First Last <website>, First Last <website>";

    My brain is just NOT functioning right today... please help guide the way. I'd like to output it to a common seperated list.

  2. #2
    SitePoint Wizard bronze trophy Jeff Mott's Avatar
    Join Date
    Jul 2009
    Posts
    1,314
    Mentioned
    19 Post(s)
    Tagged
    1 Thread(s)
    Explode on ", " to separate the person entries, then for each, explode on [space] to separate first, last and <website>.
    "First make it work. Then make it better."


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
  •