How to check if a string contains another string in PHP Apr 7, 2011 This post is another quick explanation on something that is is much more difficult to figure out than it should be. One of the most basic things you would ever want to do in programming is check if one string of text contains another string of text. In every other programming language I can think of this is simple but for some reason the PHP way of doing this has added complexity. Development Development How To's php string