title: How can I retrieve the text next to a radio button when scraping HTML using PHP?
body: <p>Right now, I'm using SimpleHTMLDOM and trying to scrape some HTML.  This is the HTML that I'm retrieving:</p>
  
  <pre><code>&lt;form action="playtrivia.jsp" name="playtrivia"&gt;
      &lt;input name="triviaid" type="hidden" value="452051"&gt;&lt;input name="categoryid" type="hidden" value="0"&gt;
      &lt;table width="100%" border="0"&gt;
          &lt;tr&gt;&lt;td colspan="4" align="center"&gt;&lt;div id="title"&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
          &lt;tr&gt;&lt;td colspan="4"&gt;&lt;hr width="75%"&gt;&lt;/td&gt;&lt;/tr&gt;
          &lt;tr&gt;&lt;td valign="top" colspan="4" align="center"&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td colspan="4" align="center"&gt;&lt;div id="title"&gt;Saturday's Secret Seat&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
          &lt;tr&gt;&lt;td&gt;&lt;img height="1" width="5" src="spacer.gif"&gt;&lt;/td&gt;
          &lt;td&gt;&lt;input name="numanswers" type="hidden" value="3"&gt;&lt;div id="subtitle"&gt;What's today's Secret Seat?&lt;/div&gt;&lt;br&gt;
              &lt;input name="answer" type="radio" value="1885233"&gt;W03&lt;br&gt;
              &lt;input name="answer" type="radio" value="1885235"&gt;Q46&lt;br&gt;
              &lt;input name="answer" type="radio" value="1885234"&gt;R90&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
          &lt;tr&gt;&lt;td&gt;&lt;/td&gt;&lt;td colspan="3"&gt;&lt;br&gt;&lt;img height="1" width="10" src="spacer.gif"&gt;&lt;input name="submit" type="submit" value="Submit"&gt;&lt;/td&gt;
          &lt;/tr&gt;
      &lt;/table&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>This is the code I've got so far that accurately gets the hidden values and the list of radio buttons with their values, but I also need to get the text that comes immediately after the button (e.g. "W03", "Q46", and "R90")</p>
  
  <pre><code>$links = array();
  foreach($html-&gt;find('input[name="answer"]') as $a) {
      echo $a . "&lt;br&gt;";
      $links[] = $a-&gt;value;
  }
  
  foreach($html-&gt;find('input[type="hidden"]') as $a) {
      echo $a;
  }
  </code></pre>
  
  <p>No matter what I do, I cannot figure out how to get that text.</p>