contains function in php

PHP
$myString = 'Hello Bob how are you?';
if (strpos($myString, 'Bob') !== false) {
    echo "My string contains Bob";
}if(strpos($comments, 'http://') !== false) {

Source

Also in PHP: