Doctrine\MongoDB\Aggregation\Stage\Operator::arrayElemAt PHP Method

arrayElemAt() public method

The expression can be any valid expression as long as it resolves to an array. The expression can be any valid expression as long as it resolves to an integer.
See also: https://docs.mongodb.org/manual/reference/operator/aggregation/arrayElemAt/
See also: Expr::arrayElemAt
Since: 1.3
public arrayElemAt ( mixed | Expr $array, mixed | Expr $index )
$array mixed | Doctrine\MongoDB\Aggregation\Expr
$index mixed | Doctrine\MongoDB\Aggregation\Expr
    public function arrayElemAt($array, $index)
    {
        $this->expr->arrayElemAt($array, $index);
        return $this;
    }