Qindex Programming Tips
109 [Quick Reference] Operators
written by Qindex at 2008-02-15 18:53 /

 JavaScript 1.3

arithmetic           :    +   ++    -   --    *    /    %
string               :    +   +=
logical              :   &&   ||    !
bitwise              :    &    ^    |    ~   <<   >>  >>>
asignment            :    =   +=   -=   *=   /=   %=   &=   ^=   |=  <<=  >>=  >>>=
comparison           :   ==   !=  ===  !==    >    <   >=   <=
special              :   ?:    ,  delete  new  this  typeof  void

 

* precedence
comma                :    ,
assignment           :    =   +=   -=   *=   /=   %=  <<=  >>= >>>=   &=   ^=   |=
conditional          :   ?:
logical-or           :   ||
logical-and          :   &&
bitwise-or           :    |
bitwise-xor          :    ^
bitwise-and          :    &
equality             :   ==   !=
relational           :    <   <=    >   >=
bitwise shift        :   <<   >>  >>>
addition/subtraction :    +    -
multiply/divide      :    *    /    %
negation/increment   :    !    ~    -    +   ++   --  typeof  void  delete
call                 :   ()
create instance      :  new
member               :    .   []


Client-Side JavaScript Reference v1.3 Chapter 5 Operators http://developer.netscape.com/docs/manuals/js/client/jsref/ops.htm.
Client-Side JavaScript Guide v1.3 Chapter 3 Expressions and Operators
http://developer.netscape.com/docs/manuals/js/client/jsguide/expr.htm.

 

 

 PHP 4

arithmetic          :    +    -    *    /    %
asignment           :    =   +=   -=   *=   /=   .=   %=   &=   |=   ^=   ~=  <<=  >>=
bitwise             :    &    |    ^    ~   <<   >>
comparison          :   ==  ===   !=   <>  !==    <    >   <=   >=
error control       :    @
execution           :    `
increment/decrement :   ++   --
logical             :  and   or  xor    !   &&   ||
string              :    .
array               :    +

 

* precedence
left               ,
left              or
left             xor
left             and
right          print
left               =   +=   -=   *=   /=   .=   %=   &=   |=   ^=   ~=   <<=   >>=
left               ?    :
left              ||
left              &&
left               |
left               ^
left               &
non-associative   ==   !=  ===  !==
non-associative    <   <=    >   >=
left              <<   >>
left               +    -    .
left               *    /    %
right              !    ~   ++   --  (int)  (float)  (string)  (array)  (object)  @
right              [
non-associative  new


PHP Manual Chapter 11. Operators http://www.php.net/manual/en/language.operators.php.

 

 

 VBScript

arithmetic           :    ^     -(unary negation)    *    /      Mod    +    -    &
comparison           :    =    <>     <    >   <=   >=   Is
logical              :   Not  And    Or  Xor  Eqv  Imp

 

* precedence
1.Arithmetic   2.Comparison   3.Logical Negation (-) Not Exponentiation (^) And Multiplication and division (*, /) Or Integer division () Xor Modulus arithmetic (Mod) Eqv Addition and subtraction (+, -) Imp String concatenation (&) &


VBScript Operators http://msdn.microsoft.com/library/en-us/script56/html/vbsOperators.asp.
Operator Precedence
http://msdn.microsoft.com/library/en-us/script56/html/vsgrpOperatorPrecedence.asp



 [post]
[permission] read:Anonymous, comment:Anonymous, write:Webmaster, upload:Webmaster, manage:Webmaster
Qindex.info