find text in string in php code example Example: php find text in variable if(strpos($comments, 'http://') !== false) {