RE: [PHP] Help ! For Loop not working
| From: | Peter | Date: | Fri, 24 May 2002 02:46:25 +0000 |
| Subject: | RE: [PHP] Help ! For Loop not working | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-99027@lists.php.net to get a copy of this message | ||
shouldn't or ($i = 0; $i < ii; $i++) be or ($i = 0; $i < $ii; $i++) ?
-----Original Message-----
From: Manisha [mailto:manisha@aurica.com]
Sent: Friday, 24 May 2002 12:34 PM
To: php-general@lists.php.net
Subject: [PHP] Help ! For Loop not working
$fcontents is an array with 3 elements.
But this for loop is not executing even once
$ii=count($fcontents);
echo("$ii");
for ($i = 0; $i < ii; $i++) {
print $i;
}
$ii has value = 3, But I am not getting the value of $i. What is wrong with
such a simple loop ? Please help
Manisha
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php