variant_round

(PHP 5, PHP 7) Rounds a variant to the specified number of decimal places mixed variant_round ( mixed $variant, int $decimals ) Returns the value of variant rounded to decimals decimal places. Parameters: variant The variant. decimals Number of decimal places. Returns: Returns the rounded value.

variant_pow

(PHP 5, PHP 7) Returns the result of performing the power function with two variants mixed variant_pow ( mixed $left, mixed $right ) Returns the result of left to the power of right. Parameters: left The left operand. right The right operand. Returns: Returns the result of left to the power of right.

variant_or

(PHP 5, PHP 7) Performs a logical disjunction on two variants mixed variant_or ( mixed $left, mixed $right ) Performs a bitwise OR operation. Note that this is slightly different from a regular OR operation. Parameters: left The left operand. right The right operand. Returns: Variant OR Rules If left is If right

variant_not

(PHP 5, PHP 7) Performs bitwise not negation on a variant mixed variant_not ( mixed $variant ) Performs bitwise not negation on variant and returns the result. Parameters: variant The variant. Returns: Returns the bitwise not negation. If variant is NULL, the result will also be NULL.

variant_neg

(PHP 5, PHP 7) Performs logical negation on a variant mixed variant_neg ( mixed $variant ) Performs logical negation of variant. Parameters: variant The variant. Returns: Returns the result of the logical negation.

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 Multiplica

variant_mod

(PHP 5, PHP 7) Divides two variants and returns only the remainder mixed variant_mod ( mixed $left, mixed $right ) Divides left by right and returns the remainder. Parameters: left The left operand. right The right operand. Returns: Returns the remainder of the division.

variant_int

(PHP 5, PHP 7) Returns the integer portion of a variant mixed variant_int ( mixed $variant ) Gets the integer portion of a variant. Parameters: variant The variant. Returns: If variant is negative, then the first negative integer greater than or equal to the variant is returned, otherwise returns the integer portion of the value of variant.

variant_imp

(PHP 5, PHP 7) Performs a bitwise implication on two variants mixed variant_imp ( mixed $left, mixed $right ) Performs a bitwise implication operation. Parameters: left The left operand. right The right operand. Returns: Variant Implication Table If left is If right is then the result is TRUE TRUE TRUE TRUE FALS

variant_idiv

(PHP 5, PHP 7) Converts variants to integers and then returns the result from dividing them mixed variant_idiv ( mixed $left, mixed $right ) Converts left and right to integer values, and then performs integer division. Parameters: left The left operand. right The right operand. Returns: Variant Integer Division