++ BUG??
| From: | Marcin Orlowski | Date: | Sun, 26 Nov 2000 02:22:09 +0000 |
| Subject: | ++ BUG?? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-27210@lists.php.net to get a copy of this message | ||
Hi,
This:
$idx=0;
[loop]
{
$idx = ($idx++)%2;
echo $idx;
}
does not work as expected (idx is always 0). But this:
$idx = ($idx+1)%2;
will do act correctly. Known bug (PHP4.0.3/debian)?
Regards,
--
Press any key to continue or any other key to quit...
Marcin http://wfmh.org.pl/~carlos/
mailto:carlos@wfmh.org.pl