RaythMistwalker Posted January 5, 2010 Share Posted January 5, 2010 ok we have ++$variable to increase something by 1. Can we use --$variable to decrease by 1? if not how do we do this? And what if i wanted to decrease by 5 but didnt want to use 5 lines? Link to comment https://forums.phpfreaks.com/topic/187305-quick-random-question-about-sometin/ Share on other sites More sharing options...
The Little Guy Posted January 5, 2010 Share Posted January 5, 2010 you can do --$variable to decrease to decrease by 5: $variable -= 5; increase by five: $variable += 5; Link to comment https://forums.phpfreaks.com/topic/187305-quick-random-question-about-sometin/#findComment-989124 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.