05.05.2013 Views

Programming PHP

Programming PHP

Programming PHP

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Table 2-3. <strong>PHP</strong> operators<br />

P A Operator Operation<br />

19 N new Create new object<br />

18 R [ Array subscript<br />

17 R ! Logical NOT<br />

R ~ Bitwise NOT<br />

R ++ Increment<br />

R -- Decrement<br />

R (int), (double), (string), (array), (object) Cast<br />

R @ Inhibit errors<br />

16 L * Multiplication<br />

L / Division<br />

L % Modulus<br />

15 L + Addition<br />

L - Subtraction<br />

L . String concatenation<br />

14 L > Bitwise shift right<br />

13 N = Greater than, greater than or equal<br />

12 N == Value equality<br />

N !=, Inequality<br />

N === Type and value equality<br />

N !== Type and value inequality<br />

11 L & Bitwise AND<br />

10 L ^ Bitwise XOR<br />

9 L | Bitwise OR<br />

8 L && Logical AND<br />

7 L || Logical OR<br />

6 L ?: Conditional operator<br />

5 L = Assignment<br />

L +=, -=, *=, /=, .=, %=, &=, |=, ^=, ~=, = Assignment with operation<br />

4 L and Logical AND<br />

3 L xor Logical XOR<br />

2 L or Logical OR<br />

1 L , List separator<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2002 O’Reilly & Associates, Inc. All rights reserved.<br />

Expressions and Operators | 35

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!