while syntax

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

Przykład D-7. Migration: old while..endwhile syntax

while ($more_to_come);
    ...
endwhile;

Przykład D-8. Migration: new while..endwhile syntax

while ($more_to_come):
    ...
endwhile;

Ostrzeżenie

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

Hosting by: Hurra Communications Sp. z o.o.
Generated: 2007-01-26 18:02:39