Account
Categories

Multiplication Operator


You use the multiplication operator (*) in a webpage for mathematical calculation. It helps in multiplying two values (numbers), which are also called operands, and together with the asterisk (*), they perform the multiplication.

Syntax:
$result = $left_operand * $right_operand;
Example:
<?php
$a = 5;
$b = 4;
$mul = $a * $b;
echo "The multiplication is: ". $mul;
?>
Output:
The multiplication is: 20