Developer Forums | About Us | Site Map
Search  
HOME > PHPMANUAL


Sponsors





Web Host
site hosted by netplex
Partners

Online Manuals

while syntax

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

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

while ($more_to_come);
    ...
 endwhile;

Example C-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.

Copyright 2004-2024 GrindingGears.com. All rights reserved. Site hosted by NETPLEX