php math operations code example Example 1: php multiplication $product = $num1 * $num2; Example 2: how to divide in php $a = $b / $c;