melvnatic Posted May 18, 2006 Share Posted May 18, 2006 1) I'm trying to increment variables:Include the file appcounter is stored in++$appcounter;Save appcounter to the same fileAm I doing anything wrong? Because $appcounter is incremented [i]once[/i], but if I try to access the script again, it doesn't work... Quote Link to comment https://forums.phpfreaks.com/topic/9894-help-with-php-overall/ Share on other sites More sharing options...
insrtsnhere13 Posted May 18, 2006 Share Posted May 18, 2006 $appcounter++;thats the correct syntax Quote Link to comment https://forums.phpfreaks.com/topic/9894-help-with-php-overall/#findComment-36780 Share on other sites More sharing options...
melvnatic Posted May 18, 2006 Author Share Posted May 18, 2006 ++$appcounter; pre increments$appcounter++; post increments, am I right? Quote Link to comment https://forums.phpfreaks.com/topic/9894-help-with-php-overall/#findComment-36781 Share on other sites More sharing options...
AndyB Posted May 18, 2006 Share Posted May 18, 2006 [a href=\"http://www.tizag.com/phpT/operators.php\" target=\"_blank\"]Simple explanation[/a] of pre- and post-incrementing. Quote Link to comment https://forums.phpfreaks.com/topic/9894-help-with-php-overall/#findComment-36783 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.