title: Get Element By Name - HTML DOM PHRASE
body: <p>I'm trying to phrase html source using HTML DOM phrase, I need to get a value inside a input tag, I tried this:</p>
  
  <pre><code>foreach ($doc-&gt;getElementsByTagName('input') as $link)
  {
      $links[] = array(
          'value' =&gt; $link-&gt;getAttribute('value'), 
          'text'  =&gt; $link-&gt;nodeValue,
      );
  }
  </code></pre>
  
  <p>This does work for me, but my web page has more that one input tag, but I want to get the value of specified input tag.</p>
  
  <p>Let's say it's,</p>
  
  <pre><code>&lt;input type="hidden" value="11111111" name="tele"&gt;
  </code></pre>
  
  <p>I tried to use <code>getElementsByTagName</code>, but it gives me an error.</p>