Руководство по PHP
Пред. | Приложение D. Migrating from PHP/FI 2 to PHP 3 | След.

# while syntax

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

Пример D-7. Migration: old while..endwhile syntax

`while ($more_to_come); ... endwhile;`

Пример D-8. Migration: new while..endwhile syntax

`while ($more_to_come): ... endwhile;`

Внимание
If you use the old while..endwhile syntax in PHP 3.0, you will get a never-ending loop.

Пред. | Начало | След.
if..endif syntax | Уровень выше | Expression types