note 18486 added to control-structures.while
| From: | phil at php2 dot chek dot com | Date: | Thu, 24 Jan 2002 22:24:19 +0000 |
| Subject: | note 18486 added to control-structures.while | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-25796@lists.php.net to get a copy of this message | ||
beware of using while() with statements like:
while(list($k)=each($array1)&&list($v)=each($array2)){...}
php does NOT like this. it simply hangs upon parsing this code, doesn't return an error or
anything. you don't even have to execute the code, only include a function that contains it.
i discovered this with with php 4.0.6
--
http://www.php.net/manual/en/control-structures.while.php
http://master.php.net/manage/user-notes.php?action=edit+18486
http://master.php.net/manage/user-notes.php?action=delete+18486
http://master.php.net/manage/user-notes.php?action=reject+18486