note 80515 added to function.list
| From: | danieljames3atgmail at osu1 dot php dot net | Date: | Sun, 20 Jan 2008 01:51:03 +0000 |
| Subject: | note 80515 added to function.list | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-135245@lists.php.net to get a copy of this message | ||
With regard to the note written by ergalvan at bitam dot com:
You must take note that list() assigns variables starting from the rightmost one (as stated in the
warning). That makes $record having the value "value4" and then $var1, $var2 and $var3
take their values from the "new" $record variable.
It's clear that the behavior stated in the warning wasn't followed by version 5.0.4 (and
perhaps previous versions?)
----------
I'm still seeing this behavior in PHP 5.2.5. Hopefully someone can comment on why it's
been changed.
----
Server IP: 209.41.74.194
Probable Submitter: 67.166.37.38
----
Manual Page -- http://www.php.net/manual/en/function.list.php
Edit -- https://master.php.net/note/edit/80515
Del: integrated -- https://master.php.net/note/delete/80515/integrated
Del: useless -- https://master.php.net/note/delete/80515/useless
Del: bad code -- https://master.php.net/note/delete/80515/bad+code
Del: spam -- https://master.php.net/note/delete/80515/spam
Del: non-english -- https://master.php.net/note/delete/80515/non-english
Del: in docs -- https://master.php.net/note/delete/80515/in+docs
Del: other reasons-- https://master.php.net/note/delete/80515
Reject -- https://master.php.net/note/reject/80515
Search -- https://master.php.net/manage/user-notes.php