Sintassi di while
Stesso come con if..endif, la sintassi di while..endwhile è anche cambiata:
Esempio C-7. Migrazione: vecchia sintassi di while..endwhile while ($piu_roba_qui);
...
endwhile; |
|
Esempio C-8. Migrazione: nuova sintassi di while..endwhile while ($piu_roba_qui):
...
endwhile; |
|
Attenzione |
Usando la vecchia sintassi di while..endwhile in PHP 3.0,
otterreste un ciclo infinito.
|