note 42107 deleted from function.list by tomsommer

From: Date: Mon, 03 May 2004 18:45:04 +0000
Subject: note 42107 deleted from function.list by tomsommer
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-69168@lists.php.net to get a copy of this message
Note Submitter: tbarstow@bu.edu ---- Note that you cannot use list() in conjunction with foreach to loop over an arbitrary set of elements. E.g., <?php foreach (list('foo', 'bar', 'baz') as $v) print "$v "; ?> will not work. This is not necessarily intuitive, since constructs similar to the above work fine in Perl.

« previous php.notes (#69168) next »