Find a needle in a haystack! If you need to see if a PHP string contains a word, this code snippet would work.
if (!strpos($url,'dog')) { echo 'No dog.'; } else { echo 'Found dog.'; }