note 22594 added to control-structures.for
| From: | php-general at lists dot php dot net | Date: | Mon, 24 Jun 2002 11:59:42 +0000 |
| Subject: | note 22594 added to control-structures.for | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-32146@lists.php.net to get a copy of this message | ||
Note that if you have an "==" string in the middle var(s) you will have an black window -
nothing will happend - not even error msg. Example:
for ($i = 1; $i == $ilosc; $i++) {
print $i;
print '<br>';
}
Will crash, but:
for ($i = 1; $i <= $ilosc; $i++) {
print $i;
print '<br>';
}
Will do it ok.
--
http://www.php.net/manual/en/control-structures.for.php
http://master.php.net/manage/user-notes.php?action=edit+22594
http://master.php.net/manage/user-notes.php?action=delete+22594
http://master.php.net/manage/user-notes.php?action=reject+22594