Search DaTutorials:  
HOME
Php Tutorials
Articles
Basics
Date and Time
File Manipulations
Forms
Functions
General
Interactivity
MySql
Navigation
News,Shoutboxes and Blogs
Language Structure and Data Types
Searching
Security
String Manipulation
User Information and Stats
Search For a Tutorial
Php Reference

while syntax

Just like with if..endif, the syntax of while..endwhile has changed as well:

Example D-7. Migration: old while..endwhile syntax

while ($more_to_come);
   ...
endwhile;

Example D-8. Migration: new while..endwhile syntax

while ($more_to_come):
   ...
endwhile;

Warning

If you use the old while..endwhile syntax in PHP 3.0, you will get a never-ending loop.



Copyright © 2001-2004 The PHP Group
All rights reserved.

     Internet Advertising | Company Reports | Loan | Xecuter 3 Mod Chip | Anime
Home     Link To Us     Ad With Us     Contact Us     Tell A Friend     Affiliates     Blog     MsOfficeHelp