variant_mul

(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:
Variant Multiplication Rules
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:

variant_div() -

variant_idiv() -

doc_php
2016-02-24 16:14:28
Comments
Leave a Comment

Please login to continue.