while 문법
if..endif 와 비슷하게, while..endwhile 문법도 변경되었다:
예 D-7. 이주: 구버전의 while..endwhile 문법
while ($more_to_come); ... endwhile;
|
|
예 D-8. 이주: 새로운 while..endwhile 문법
while ($more_to_come): ... endwhile;
|
|
주의 |
PHP 3.0에서 구버전의 while..endwhile 문법을 사용한다면,
루프를 결코 끝낼수 없을것이다.
|