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

substr() public method

The arguments can be any valid expression as long as long as the first argument resolves to a string, and the second and third arguments resolve to integers.
See also: http://docs.mongodb.org/manual/reference/operator/aggregation/substr/
See also: Expr::substr
public substr ( mixed | Expr $string, mixed | Expr $start, mixed | Expr $length )
$string mixed | Doctrine\MongoDB\Aggregation\Expr
$start mixed | Doctrine\MongoDB\Aggregation\Expr
$length mixed | Doctrine\MongoDB\Aggregation\Expr
    public function substr($string, $start, $length)
    {
        $this->expr->substr($string, $start, $length);
        return $this;
    }