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