Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • diegoiee

    (@diegoiee)

    sorry, I made a mistake in my original post: instead of the classic !=, you have to use !==

    for example:

    if(strpos($string,$substring)!==false)

    diegoiee

    (@diegoiee)

    Hey, I’ve just read that you had a problem with the letter D, I wanted to tell you that I had the same problem and I found the answer to that. A lot a search engines in php user the function strpos or stripos. The thing is that when you compare you have to use three equals and the boolean value, for example:
    if(strpos($string,$substring)!===false)

    Regards,
    Diego

Viewing 2 replies - 1 through 2 (of 2 total)