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... 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 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? 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. Link to comment https://forums.phpfreaks.com/topic/9894-help-with-php-overall/#findComment-36783 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.