note 33219 deleted from control-structures.while by felipe
| From: | felipe@php.net | Date: | Tue, 29 Jan 2008 11:19:50 +0000 |
| Subject: | note 33219 deleted from control-structures.while by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-135512@lists.php.net to get a copy of this message | ||
Note Submitter: destes at ix dot netcom dot com dot nospam
----
Be very careful about the exact syntax of your condition clause. Specifically, if you're not
careful, you can easily get an infinite loop, and will wonder why the PHP page isn't loading.
For example:
<?php
while ($loop = TRUE) {
...
}
?>
Instead of $loop == TRUE. This is a common mistake but it hurts more when it's in a structure
like a while().