PHP: while syntax - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

Expression types if..endif syntax

Last updated: Sat, 27 Jan 2007

view this page in

# 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.

add a note User Contributed Notes
while syntax
There are no user contributed notes for this page.
Expression types if..endif syntax

Last updated: Sat, 27 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 10:36:09 2007 PST