Bir dize belirli bir değeri olsun, bir değişkene atamak

0 Cevap
shopp('product','quantity','input=menu&return=true');

Benim CMS yukarıdaki fonksiyon değerini döndürür <select name="products[1][quantity]" id="quantity-1"><option selected="selected" value="1">1</option><option value="2">2</option><option value="3">3</option></select>.

Any idea how I can get the number in that last option tag and assign it to a variable in php? Yukarıdaki durumda, ben, diyelim ki, bir değişkene $ aaa numarası '3 'atamak istiyorum.

(BTW, the number of option tags is not fixed, ve bir kaç yüz kadar gidebilir.)

0 Cevap