SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast Durinthiam's Avatar
    Join Date
    Jan 2005
    Location
    www.raidshout.com
    Posts
    87
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    confuddled on how to explode this array

    Solved
    Jim Maitland
    Freelance Designer, Programmer & Tutorial Writer

  2. #2
    Worship the Krome kromey's Avatar
    Join Date
    Sep 2006
    Location
    Fairbanks, AK
    Posts
    1,621
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    array_filter:
    Code PHP:
    function callback($element)
    {
        return (strpos($element,"Durinthian")!==false);
    }
    $filtered = array_filter($array, "callback");
    var_dump($filtered);
    PHP questions? RTFM
    MySQL questions? RTFM

  3. #3
    SitePoint Enthusiast Durinthiam's Avatar
    Join Date
    Jan 2005
    Location
    www.raidshout.com
    Posts
    87
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks for that, no idea what it does but I figured out my problem anyway :P when I was trying to explode i was doing it by " " rather than "\t"
    Jim Maitland
    Freelance Designer, Programmer & Tutorial Writer


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
  •