mod() public method

The arguments can be any valid expression as long as they resolve to numbers.
See also: http://docs.mongodb.org/manual/reference/operator/aggregation/mod/
public mod ( mixed | self $expression1, mixed | self $expression2 )
$expression1 mixed | self
$expression2 mixed | self
Esempio n. 1
0
 /**
  * Divides one number by another and returns the remainder. The first
  * argument is divided by the second argument.
  *
  * The arguments can be any valid expression as long as they resolve to numbers.
  *
  * @see http://docs.mongodb.org/manual/reference/operator/aggregation/mod/
  * @see Expr::mod
  * @param mixed|Expr $expression1
  * @param mixed|Expr $expression2
  * @return self
  */
 public function mod($expression1, $expression2)
 {
     $this->expr->mod($expression1, $expression2);
     return $this;
 }