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