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