Get particular value from a string, assign it to a variable
<pre><code>shopp('product','quantity','input=menu&amp;return=true');
</code></pre>

<p>The above function from my CMS returns the value <code>&lt;select name="products[1][quantity]" id="quantity-1"&gt;&lt;option selected="selected" value="1"&gt;1&lt;/option&gt;&lt;option value="2"&gt;2&lt;/option&gt;&lt;option value="3"&gt;3&lt;/option&gt;&lt;/select&gt;</code>.</p>

<p><strong>Any idea how I can get the number in that last option tag and assign it to a variable in php?</strong> In the above case, I'd like to assign the number '3' to a variable, say, $aaa.</p>

<p>(BTW, <em>the number of option tags is not fixed</em>, and can go up to a few hundred.)</p>
