In fact, the foreach: .. endforeach; syntax is documented here:
 http://fr.php.net/manual/en/control-structures.alternative-syntax.php

We should add some links to this page in the docs of if, while, for,
foreach, and switch. Can someone take care ?

didou
--- Begin Message ---
Note that the alternative syntax is not mentioned here, but does work:

<?php
foreach (array_expression as $value):
    statement
endforeach;
?>

-or-

<?php
foreach (array_expression as $key => $value):
    statement
endforeach;
?>
----
Manual Page -- http://www.php.net/manual/en/control-structures.foreach.php
Edit        -- http://master.php.net/manage/user-notes.php?action=edit+45081
Delete      -- 
http://master.php.net/manage/user-notes.php?action=delete+45081&report=yes
Reject      -- 
http://master.php.net/manage/user-notes.php?action=reject+45081&report=yes
Search      -- http://master.php.net/manage/user-notes.php

--- End Message ---

Reply via email to