Switch to full style
:read: Start PHP with us. Includes topics to help you in php
Post a reply

Postfix and Prefix Operators table

Mon Oct 27, 2008 5:45 pm

Code:

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--




Post a reply
  Related Posts  to : Postfix and Prefix Operators table
 Relational Operators table     -  
 Shorthand Operators table     -  
 infix to postfix converter     -  
 Suffix Prefix sum java     -  
 PHP operators     -  
 Using Assignment Operators     -  
 C++ Increment Operators     -  
 Bitwise operators     -  
 Equality Operators     -  
 difference between the >> and >>> operators     -  

Topic Tags

PHP Basics