note 125373 added to language.operators
| From: | anisgazig at gmail dot com | Date: | Wed, 16 Sep 2020 17:49:37 +0000 |
| Subject: | note 125373 added to language.operators | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-215130@lists.php.net to get a copy of this message | ||
Operator are used to perform operation.
Operator are mainly divided by three groups.
1.Uniary Operators that takes one values
2.Binary Operators that takes two values
3.ternary operators that takes three values
Operator are mainly divided by three groups that are totally seventeen types.
1.Arithmetic Operator
+ = Addition
- = Subtraction
* = Multiplication
/ = Division
% = Modulo
** = Exponentiation
2.Assignment Operator
= "equal to
3.Array Operator
+ = Union
== = Equality
=== = Identity
!= = Inequality
<> = Inequality
!== = Non-identity
4.Bitwise Operator
& = and
^ = xor
| = not
<< = shift left
>> = shift right
5.Comparison Operator
== = equal
=== = identical
!= = not equal
!== = not identical
<> = not equal
< = less than
<= less than or equal
> = greater than
>= = greater than or equal
<=> = spaceship operator
6.Execution Operator
`` = backticks
7.Error Control Operator
@ = at sign
8.Incrementing/Decrementing Operator
++$a = PreIncrement
$a++ = PostIncrement
--$a = PreDecrement
$a-- = Postdecrement
9.Logical Operator
&& = And
|| = Or
! = Not
and = And
xor = Xor
or = Or
10.string Operator
. = concatenation operator
.= concatenating assignment operator
11.Type Operator
instanceof = instanceof
12.Ternary or Conditional operator
?: = Ternary operator
13.Null Coalescing Operator
??" = null coalescing
14.Clone new Operator
clone new = clone new
15.yield from Operator
yield from = yield from
16.yield Operator
yield = yield
17.print Operator
print = print
----
Server IP: 45.112.84.4
Probable Submitter: 103.51.167.36 (proxied: 116.204.228.198)
----
Manual Page -- http://php.net/manual/en/language.operators.php
Edit -- https://master.php.net/note/edit/125373
Del: integrated -- https://master.php.net/note/delete/125373/integrated
Del: useless -- https://master.php.net/note/delete/125373/useless
Del: bad code -- https://master.php.net/note/delete/125373/bad+code
Del: spam -- https://master.php.net/note/delete/125373/spam
Del: non-english -- https://master.php.net/note/delete/125373/non-english
Del: in docs -- https://master.php.net/note/delete/125373/in+docs
Del: other reasons-- https://master.php.net/note/delete/125373
Reject -- https://master.php.net/note/reject/125373
Search -- https://master.php.net/manage/user-notes.php