while syntaxPHP ManualPrevAppendix A. Migrating from PHP/FI 2.0 to PHP 3.0Nextwhile syntax
Just like with if..endif, the syntax of while..endwhile has changed
as well:
Example A-7. Migration: old while..endwhile syntax 1
2 while ($more_to_come);
3 ...
4 endwhile;
5
Example A-8. Migration: new while..endwhile syntax 1
2 while ($more_to_come):
3 ...
4 endwhile;
5
Warning
If you use the old while..endwhile syntax in PHP 3.0, you will get
a never-ending loop.
PrevHomeNextif..endif syntaxUpExpression types
Wyszukiwarka