shouldn't or ($i = 0; $i < ii; $i++) be or ($i = 0; $i < $ii; $i++) ?
-Original Message-
From: Manisha [mailto:[EMAIL PROTECTED]]
Sent: Friday, 24 May 2002 12:34 PM
To: [EMAIL PROTECTED]
Subject: [PHP] Help ! For Loop not working
$fcontents is an array with 3 elements.
But this for lo
Missing a dollar sign in your for() loop definition. See if you can find
out where...
---John Holmes...
> -Original Message-
> From: Manisha [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, May 23, 2002 10:34 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Help ! For Loop not working
>
> $fcont
Sorry, got it, I am not doing $ii
Sorry again
Manisha
At 10:33 AM 5/24/02 +0800, Manisha wrote:
>$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 matches
Mail list logo