note 43344 added to function.list

From: Date: Fri, 18 Jun 2004 02:20:46 +0000
Subject: note 43344 added to function.list
Groups: php.notes 
Request: Send a blank email to php-notes+get-71273@lists.php.net to get a copy of this message
If the number of list elements is fewer than the number of array elements being assigned, then the excess list elements become unset: $c = 1; @ list($a,$b,$c) = array(2,3); // unsets $c if (isset($c)) print "This won't print.<br>\n"; else print '$c is not set'."<br>\n"; prints: $c is not set ---- Manual Page -- http://www.php.net/manual/en/function.list.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+43344 Delete -- http://master.php.net/manage/user-notes.php?action=delete+43344&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+43344&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#71273) next »