HELP!strpos multiple patterns to be search in a string !

Discussion in 'PHP' started by jigen7, Sep 20, 2007.

  1. #1
    is strpos can handle multiple patterns?for example i want to know if a string contains a word google or yahoo??? i need to get urls from which they dont have any google or yahoo word on it to be able to save it to an array...
     
    jigen7, Sep 20, 2007 IP
  2. omgitsfletch

    omgitsfletch Well-Known Member

    Messages:
    1,222
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    145
    #2
    You probably would be better suited looking into regular expressions. Check out preg_match() in the PHP function list.
     
    omgitsfletch, Sep 20, 2007 IP
    guerilla likes this.