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