my Domainname from input is:
example.com
curl $data
gives me this, always different:
between <span></span>
is the domain name.
1. <span>example.com</span>
2. <span>www.example.com</span>
3. <span>http://example.com</span>
4. <span>https://example.com</span>
5. <span>https://example.com/</span>
6. <span>https://example.com/categories</span>
7. <span><b>www</b>.<b>example</b>.<b>com</b></span>
8. <span><b>www</b>.<b>example.com</b></span>
9. <span>Not included</span>
the professionals have a good solution for me? fals one is found should be stopped.
My current code fails unfortunately. :-(
$dname = array($d1, $d2, $d3, $d4, $d5, $d6, $d7, $d8, $d9);
$pos = strpos($data, $dname);
if ($pos !== false) {
echo 'YES';
} else {
echo 'NO'
}