while syntax
Práve tak ako s if..endif, syntax while..endwhile sa tiež zmenil:
Example#1 Migrácia: starý while..endwhile syntax
while ($more_to_come);
...
endwhile;
Example#2 Migrácia: nový while..endwhile syntax
while ($more_to_come):
...
endwhile;
Warning
Ak používate starý while..endwhile syntax v PHP 3.0, dostanete nekonečnú slučku.