public function startsWith($key, $value)
    {
        $this->addCondition($key, '$regex', "^" . $this->quote($value));

        return $this;
    }
public function startsWith($key, $value)
    {
        $this->addCondition($key, '$regex', "^" . $this->quote($value));

        return $this;
    }
public function startsWith ( $ key , $ value ) { $ this -> addCondition ( $ key , '$regex' , "^" . $ this -> quote ( $ value ) ) ; return $ this ; }
Add a constraint to the query that requires a particular key's value to
start with the provided value.

@param string $key The key to check.
@param mixed $value The substring that the value must start with.

@return AVQuery Returns this query, so you can chain this call.
Add a constraint to the query that requires a particular key s value to start with the provided value .