Re: $i vs. $r

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kevin Murphy wrote:
Does anyone have a clue why using this code doesn't work:

Please specify what "doesn't work" means in this case :)

$i = 0;

while ($row = mysql_fetch_array($result))

{ echo ("Blah blah blah");
        $i++;
    }


$r = 0;

while ($row = mysql_fetch_array($result))

{ echo ("Blah blah blah");
        $r++;
    }

Those two blocks of code are for all intents and purposes identical, and indeed probably end up as exactly the same opcodes.

Jasper

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux