Hi Yasuo,
Subject: Re: [PHP] Nested for() loops? - Now Multi Dimension Arrays
Date: Sat, 7 Apr 2001 12:57:02 +0900
From: "Yasuo Ohgaki" [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Simple to fix it. You just need to resolve ambiguity with {}.
$res = $i * $j;
Howdy Y'all!
I'm trying to figure out why I'm having so much difficulty with
nested for loops.
As a test, I did this and it doesn't work. The script simply doesn't
give any output.
?
error_reporting(E_ALL);
for( $i=0; $i10; $i++ )
for( $j=0; $j10; $j++ )
{
$res = $i * $j;
Joe Stump wrote:
A copy and paste into foo.php and then a php -q foo.php yielded results for
me.
Yeah, it's giving me results too today. I don't know what went wrong
yesterday.
To extend my question, I'm trying to work with multidimensional arrays.
For example, I would like to do this:
3 matches
Mail list logo