String matching question

Discussion in 'PHP' started by matthewrobertbell, Dec 14, 2007.

  1. #1
    I know I can use strpos / preg_match to find if the contents of a string are also in another string, but is there a way to match all the elements of an array to a string, without using foreach?

    Thanks
     
    matthewrobertbell, Dec 14, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    nico_swd, Dec 14, 2007 IP
    matthewrobertbell likes this.
  3. matthewrobertbell

    matthewrobertbell Peon

    Messages:
    781
    Likes Received:
    35
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Cheers :) Rep given.
     
    matthewrobertbell, Dec 14, 2007 IP