View Single Post
06-25-2008, 12:58 PM
#7
Village Genius is offline Village Genius
Village Genius's Avatar
Status: Geek
Join date: Apr 2006
Location: Denver, CO
Expertise: Software
Software: Chrome, Notepad++
 
Posts: 6,894
iTrader: 18 / 100%
 

Village Genius will become famous soon enough

  Old

Putting the ++ after returns the variable then increments it, having the ++ before increments it then returns the variable.

Meaning if you echo $a++, it will display $a then add it to one after is has passed it value. If you display ++$a, it will show the value of $a added by one.