public function range()
    {
        $args = func_get_args();
        $arg_num = count($args);

        if ($arg_num%2 != 0) {
            throw new \InvalidArgumentException('Number of args must be even', 1);
        }

        $value = '[';

        for ($i = 0; $i < $arg_num;) {
            $value .= self::sanitize($args[$i++]) . '-' . self::sanitize($args[$i++]);
        }

        $value .= ']';

        return $this->add($value);
    }
public function range()
    {
        $args = func_get_args();
        $arg_num = count($args);

        if ($arg_num%2 != 0) {
            throw new \InvalidArgumentException('Number of args must be even', 1);
        }

        $value = '[';

        for ($i = 0; $i < $arg_num;) {
            $value .= self::sanitize($args[$i++]) . '-' . self::sanitize($args[$i++]);
        }

        $value .= ']';

        return $this->add($value);
    }
public function range ( ) { $ args = func_get_args ( ) ; $ arg_num = count ( $ args ) ; if ( $ arg_num % 2 != 0 ) { throw new \ InvalidArgumentException ( 'Number of args must be even' , 1 ) ; } $ value = '[' ; for ( $ i = 0 ; $ i < $ arg_num ; ) { $ value .= self :: sanitize ( $ args [ $ i ++ ] ) . '-' . self :: sanitize ( $ args [ $ i ++ ] ) ; } $ value .= ']' ; return $ this -> add ( $ value ) ; }
Add a range

Adds a range to our expression ex: range(a,z) => a-z, range(a,z,0,9) => a-z0-9

@access public
@return VerbalExpressions
@throws \InvalidArgumentException
Add a range