How do I search $html for these exact words "$2.99 Buy", and return a positive when found? It would also help if it was case sensitive.
My goal is to check iTunes and see if the current selected book is still $2.99
<?php $html = file_get_contents ($urlonitunes);
echo $html;?>
Use strpos()
:
if(strpos($html, '$2.99 Buy') !== FALSE) {
echo 'found';
}