title: Get anchor tag name value using php
body: <p>i am getting a page with php function like following</p>
  
  <pre><code>&lt;?php $html = file_get_contents('http://www.domain.com');?&gt;
  </code></pre>
  
  <p>i want to get anchor tag name field value using php. that is like </p>
  
  <pre><code>&lt;a href="something" name="something"&gt;some value&lt;/a&gt;
  </code></pre>
  
  <p>I don't know how to do it. found nothing in google it.</p>