src/Anshar/Utils/StringHelper.php
public function startsWith($string)
    {
        $pattern = "/^" . preg_quote($string, "/") . "/";

        $starts_with_string = preg_match($pattern, $this->string);

        return (bool) $starts_with_string;
    }
public function startsWith($string)
    {
        $pattern = "/^" . preg_quote($string, "/") . "/";

        $starts_with_string = preg_match($pattern, $this->string);

        return (bool) $starts_with_string;
    }
public function startsWith ( $ string ) { $ pattern = "/^" . preg_quote ( $ string , "/" ) . "/" ; $ starts_with_string = preg_match ( $ pattern , $ this -> string ) ; return ( bool ) $ starts_with_string ; }
Determines whether the string starts with a given string.

@param string $string    A string the string may or may not start with

@return bool             Returns true if the string starts with the given string
Returns false if the string does not start with the given string
Determines whether the string starts with a given string .