Total members 11895 |It is currently Tue Dec 03, 2024 5:43 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





Code:

Operation       Operator        Example        Expansion

Assignment      =               $a = 5         $a = 5

Addition        +=              $a += 5        $a = $a + 5

Subtraction     -=              $a -= 5        $a = $a - 5

Multiplication  *=              $a *= 5        $a = $a * 5

Division        /=              $a /= 5        $a = $a / 5

Concatenation   .=              $a .= "Add"    $a = $a . "Add"

Modulus         %=              $a %= 5        $a = $a % 5

Bitwise AND     &=              $a &= 5        $a = $a & 5

Bitwise         |=              $a |= 5        $a = $a | 5
inclusive OR

Bitwise         ^=              $a ^= 5        $a = $a ^ 5
exclusive OR (XOR)

Bitwise NOT     ~=              $a ~= 5        $a = $a ~ 5

Bitwise         <<=             $a <<= 5       $a = $a << 5
left-shift

Bitwise         >>=             $a >>= 5       $a = $a >> 5
right-shift




_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 time
Post new topic Reply to topic  [ 1 post ] 

  Related Posts  to : Shorthand Operators table
 Relational Operators table     -  
 Postfix and Prefix Operators table     -  
 PHP operators     -  
 shortcut operators     -  
 Using Assignment Operators     -  
 C++ Increment Operators     -  
 Bitwise operators     -  
 Equality Operators     -  
 using bit-wise operators in c++     -  
 difference between the >> and >>> operators     -  



Topic Tags

PHP Variables






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com