Home > Article > Backend Development > What are the symbols for common operators in php?
Common operator symbols in PHP include: arithmetic operators ( , -, *, /, %) assignment operators (=, =, -=, *=, /=) comparison operators (= =, !=, >, <, >=, <=) Logical operators (&&, ||, !) Bit operators (&, |, ^, <<, >>) Other operators (., ::, ->)
Common operator symbols in PHP
Operators are used to perform operations and modify variables. Common operator symbols in PHP include:
Arithmetic operators
Assignment operator
Comparison operator
Logical operator
Bitwise operator
Right shift
. Hyphen (used to connect strings)
<code class="php">$remainder = $number % 3;</code>
The above is the detailed content of What are the symbols for common operators in php?. For more information, please follow other related articles on the PHP Chinese website!