title: How to find specific query in the URL and display whole link
body: <p>Current code is like this :</p>
  
  <pre><code>include 'simple_html_dom.php';
      // Create DOM from URL or file
      $html = file_get_html('http://www.AnyLinkAlsoCan.com');
  
  
      // Find all links 
      foreach($html-&gt;find('a') as $element) 
  
             echo $element-&gt;href . '&lt;br&gt;';
  </code></pre>
  
  <p>It will crawl and find tag like this : </p>
  
  <pre><code>&lt;a href="http://news.example.com/node"&gt;
  </code></pre>
  
  <p>And will output all link it found on the website. </p>
  
  <p>Example</p>
  
  <pre><code>http://news.example.com.my/node/321072
  http://news.example.com.my/taxonomy/term/2
  http://news.example.com.my/node/321060?tid=2
  </code></pre>
  
  <p>I want to search url that contain only <code>?tid=</code> as you can see on the 3rd URL in the example. </p>
  
  <pre><code>http://news.example.com.my/node/321060?tid=2
  </code></pre>
  
  <p>I replace <code>echo $element-&gt;href="*?tid</code> but that just return error. Can someone help me with this?</p>