(PHP 5, PHP 7)
Multiplies the values of the two variants
mixed variant_mul ( mixed $left, mixed $right )
Multiplies left
by right
.
Parameters:
left
The left operand.
right
The right operand.
Returns:
If | Then |
---|---|
Both expressions are of the string, date, character, boolean type | Multiplication |
One expression is a string type and the other a character | Multiplication |
One expression is numeric and the other is a string | Multiplication |
Both expressions are numeric | Multiplication |
Either expression is NULL | NULL is returned |
Both expressions are empty | Empty string is returned |
See also:
Please login to continue.