Maybe you guys should take a read about pre- and post-increment :-)

Sam Masiello wrote:
This drove me nuts for a while and instead of doing $variable++ I
started using ++$variable and never had the problem again.

--Sam


Jake McHenry wrote:


No.

$correct++;

Is all you need for the second condition, it automatically sets
itself back.




Does this always work? In my timesheet app, I have to do $counter =
$counter + 1, because for some reason the $counter++; doesn't work.
It just + doesn't
work, no incrementation of the variable. Is there something in
php.ini that can prohibit this from working?


Thanks,
Jake



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



Reply via email to