concatArrays() public method

The expressions can be any valid expression as long as they resolve to an array.
See also: https://docs.mongodb.org/manual/reference/operator/aggregation/concatArrays/
Since: 1.3
public concatArrays ( mixed | self $array1, mixed | self $array2 )
$array1 mixed | self
$array2 mixed | self
Exemplo n.º 1
0
 /**
  * Concatenates arrays to return the concatenated array.
  *
  * The <array> expressions can be any valid expression as long as they
  * resolve to an array.
  *
  * @see https://docs.mongodb.org/manual/reference/operator/aggregation/concatArrays/
  * @see Expr::concatArrays
  * @param mixed|Expr $array1
  * @param mixed|Expr $array2
  * @param mixed|Expr $array3, ... Additional expressions
  * @return $this
  *
  * @since 1.3
  */
 public function concatArrays($array1, $array2)
 {
     $this->expr->concatArrays(...func_get_args());
     return $this;
 }