Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<if..endif syntaxExpression types>
Last updated: Tue, 19 Sep 2006

while syntax

Just like with if..endif, the syntax of while..endwhile has changed as well:

Example D-7. Migration: old while..endwhile syntax

while ($more_to_come);
    ...
endwhile;

Example D-8. Migration: new while..endwhile syntax

while ($more_to_come):
    ...
endwhile;

Warning

If you use the old while..endwhile syntax in PHP 3.0, you will get a never-ending loop.




<if..endif syntaxExpression types>
Last updated: Tue, 19 Sep 2006