note 42107 added to function.list
| From: | tbarstow at bu dot edu | Date: | Mon, 03 May 2004 18:20:35 +0000 |
| Subject: | note 42107 added to function.list | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-69163@lists.php.net to get a copy of this message | ||
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.
----
Manual Page -- http://www.php.net/manual/en/function.list.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+42107
Delete -- http://master.php.net/manage/user-notes.php?action=delete+42107&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+42107&report=yes
Search -- http://master.php.net/manage/user-notes.php