Posted by Toby A Inkster on 06/21/07 15:00
Spartacus wrote:
> while (list($k, $v) = each($_POST['items']))
By the way, most people would say that the following is more readable:
foreach ($_POST['items'] as $k=>$v)
and it's functionally equivalent. (Indeed, after parsing I believe PHP
treats them exactly the same.)
--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 18:38.]
dict, thes & ency
http://tobyinkster.co.uk/blog/2007/06/18/dict-thes-ency/
[Back to original message]
|