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