运算符(Operators)


算数运算符(Arithmetic Operators)

运算符 符号 使用 例 备注
addition + $var1 + $var2 -
subtraction - $var1 - $var2 -
multiplication * $var1 * $var2 -
division / $var1 / $var2 quotient of division in integer operation
the rest % $var1 % $var2 remainder of division