title: php extract info from a html page
body: <p>I have this code </p>
  
  <pre><code>&lt;input type=hidden name="code1" value="AA-T5301"&gt;
      &lt;tr&gt;
          &lt;td align=left valign=middle class="stdtext"&gt;
              AA-T5301
          &lt;/a&gt;
          &lt;/td&gt;
          &lt;td valign=middle align=left class="stdtext"&gt;
              &lt;a onMouseOver="window.status='See the more info on '; return true"
                  HREF="product.asp?ms=&amp;dept_id=322&amp;sku=32&amp;nav="&gt;
                  Grapeseed Oil 150ml
              &lt;/A&gt;
          &lt;/td&gt;
          &lt;td valign=middle align=right class="stdtext"&gt;Order Now&lt;/td&gt;
          &lt;td valign=middle align=right class="stdtext"&gt;
              &lt;font class="productsale"&gt;
                  &lt;strike&gt;£3.04&lt;/strike&gt;
                  &amp;#160;
              &lt;/font&gt;
              £2.04
          &lt;/td&gt;
          &lt;td valign=middle align=right class="stdtext"&gt;
              &lt;input type=text size=4 name="qty_AA-T5301" value="0"&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
      &lt;input type=hidden name="code2" value="AA-T5302"&gt;
          &lt;tr&gt;
              &lt;td align=left valign=middle class="stdtext"&gt;
                  AA-T5302
              &lt;/a&gt;
              &lt;/td&gt;
              &lt;td valign=middle align=left class="stdtext"&gt;
                  &lt;a onMouseOver="window.status='See the more info on '; return true"
                      HREF="product.asp?ms=&amp;dept_id=322&amp;sku=143&amp;nav="&gt;
                      Grapeseed Oil 500ml
                  &lt;/A&gt;
              &lt;/td&gt;
              &lt;td valign=middle align=right class="stdtext"&gt;Order Now&lt;/td&gt;
              &lt;td valign=middle align=right class="stdtext"&gt;
                  &lt;font class="productsale"&gt;
                      &lt;strike&gt;£6.46&lt;/strike&gt;
                      &amp;#160;
                  &lt;/font&gt;
                  £4.33
              &lt;/td&gt;
              &lt;td valign=middle align=right class="stdtext"&gt;
                  &lt;input type=text size=4 name="qty_AA-T5302" value="0"&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
          &lt;input type=hidden name="code3" value="AA-T530"&gt;
              &lt;tr&gt;
                  &lt;td align=left valign=middle class="stdtext"&gt;
                      AA-T530
                  &lt;/a&gt;
                  &lt;/td&gt;
                  &lt;td valign=middle align=left class="stdtext"&gt;
                      &lt;a onMouseOver="window.status='See the more info on '; return true"
                          HREF="product.asp?ms=&amp;dept_id=322&amp;sku=19&amp;nav="&gt;
                          Grapeseed Oil 50ml
                      &lt;/A&gt;
                  &lt;/td&gt;
                  &lt;td valign=middle align=right class="stdtext"&gt;Out of Stock&lt;/td&gt;
                  &lt;td valign=middle align=right class="stdtext"&gt;
                      &lt;font class="productsale"&gt;
                          &lt;strike&gt;£1.75&lt;/strike&gt;
                          &amp;#160;
                      &lt;/font&gt;
                      £1.17
                  &lt;/td&gt;
                  &lt;td valign=middle align=right class="stdtext"&gt;
                      &lt;input type=text size=4 name="qty_AA-T530" value="0"&gt;
                  &lt;/td&gt;
              &lt;/tr&gt;
  </code></pre>
  
  <p>How can i extract the info into an array so i have something like this..</p>
  
  <pre><code>product_code_array=(AA-T5301,AA-T5302,AA-T530);
  
  RRP_array=(3.04,6.46,1.75);
  
  price_array=(2.04,4.33,1.17);
  </code></pre>
  
  <p>Note: There maybe more than 3 items on a page at a time or there may only be 1</p>