Re: Simple: Whats wrong with this?
| From: | Adam Voigt | Date: | Wed, 17 Mar 2004 17:03:16 +0000 |
| Subject: | Re: Simple: Whats wrong with this? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-180694@lists.php.net to get a copy of this message | ||
Not that I'm aware of.
In every incantation I've ever seen of the incrementing,
$correct++;
Is always, 100% equal to:
$correct = ($correct + 1);
But, maybe you ran into a case where it's not, you never know.
On Wed, 2004-03-17 at 12:00, 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
--
Adam Voigt
adam@kotisprop.com