array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'es', ), 'this' => array ( 0 => 'function.variant-mod.php', 1 => 'variant_mod', ), 'up' => array ( 0 => 'ref.com.php', 1 => 'COM Funciones', ), 'prev' => array ( 0 => 'function.variant-int.php', 1 => 'variant_int', ), 'next' => array ( 0 => 'function.variant-mul.php', 1 => 'variant_mul', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/com/functions/variant-mod.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5, PHP 7, PHP 8)
variant_mod — Divides two variants and returns only the remainder
Divides left
by right
and
returns the remainder.
left
The left operand.
right
The right operand.
Nota:
Al igual que con todas las funciones aritméticas variantes, los parámetros de esta función pueden ser tanto un tipo nativo de PHP (integer, string, de punto flotante, boolean o
null
), o una instancia de una clase COM, VARIANT o DOTNET. Los tipos nativos de PHP serán convertidos en variantes usando las mismas reglas tal como se encuentran en el constructor para la clase variant. Los objetos COM y DOTNET tomarán el valor de sus propiedades predeterminadas adoptadas y lo utilizarán como el valor variante.Las funciones aritméticas variantes son wrappers alrededor de las funciones con nombres similares en la librería COM; para más información sobre estas funciones, consulte la librería MSDN. Las funciones de PHP tienen nombres ligeramente diferentes; por ejemplo, variant_add() en PHP corresponde a
VarAdd()
en la documentación MSDN.
Returns the remainder of the division.
Throws a com_exception on failure.