variant_mod
PHP function
Edit on GitHub ✎
(PHP 5, PHP 7, PHP 8)
Divides two variants and returns only the remainder
Description
variant_mod(mixed $left, mixed $right): variant
Divides left by right and returns the remainder.
Parameters
leftThe left operand.
rightThe right operand.
Variant-arith
Return Values
Returns the remainder of the division.
Errors/Exceptions
Throws a com_exception on failure.