Postfix and Prefix Operators summary table : Postfix Prefix Operators : Language Basics PHP Source Code


PHP Source Code » Language Basics » Postfix Prefix Operators »

 

Postfix and Prefix Operators summary table






Operation                                                 Operator    Class     Example                
-----------------------------------------------------------------------------------------
Preincrement: 
Increment operand by one before the variable is used.     ++          Prefix    ++$a

Postincrement: 
Increment operand by one after the variable is used.      ++          Postfix   $a++

Predecrement: 
Decrement operator by one before the variable is used.    --          Prefix    --$a

Postdecrement: 
Decrement operand by one after the variable is used.      --          Postfix   $a--
           
       



HTML code for linking to this page:

Follow Navioo On Twitter

PHP Source Code

 Navioo Language Basics
» Postfix Prefix Operators