OperatorsPHP ManualPrevNextChapter 10. OperatorsTable of ContentsArithmetic OperatorsAssignment OperatorsBitwise OperatorsComparison OperatorsError control OperatorsExecution OperatorsIncrementing/Decrementing OperatorsLogical OperatorsOperator PrecedenceString Operators
Arithmetic Operators
Remember basic arithmetic from school? These work just
like those.
Table 10-1. Arithmetic Operatorsexamplenameresult$a + $bAdditionSum of $a and $b.$a - $bSubtractionDifference of $a and $b.$a * $bMultiplicationProduct of $a and $b.$a / $bDivisionQuotient of $a and $b.$a % $bModulusRemainder of $a divided by $b.PrevHomeNextExpressionsUpAssignment Operators
Wyszukiwarka