Arithmetic operators: (+ Addition),(- subtraction), (* multiplication), (/ division),( % modulus)
Assignment Operators: =
Comparison Operators:
- == equal to [ echo ( 7 == “7” ) ] Only Data check, if 7 equal 7 otherwise false
- ! = not equal to [ echo (7 != 6) ] if 7 doesn’t equal 6, otherwise false
- === identical to [ echo 6=== “6” ] Data and Data type check. if 6 doesn’t equal 6 or they aren’t same type, otherwise false
- < less than [ echo 3<5 ]
- > greater than [ echo 5>4 ]
- <= less than equal to
- >= greater than equal to
Bitwise Operator:
Binary: Binary is a 0 , 1 and binary base is a 2.
How to get binary 255
1 Byte ( 8 bits ) | ||||||||||
256 | 128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 | ||
8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | ||
2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 | 2 |
128 | 255 | 1 |
64 | 127 | 1 |
32 | 83 | 1 |
16 | 51 | 1 |
8 | 35 | 1 |
4 | 23 | 1 |
2 | 21 | 1 |
1 | 20 | 1 |
128 | 64 | 32 | 16 | 8 | 4 | 2 | 1 | total=255 |
1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 |