public function startswith(string $haystack, string $needle) : bool
    {
        return (substr($haystack, 0, strlen($needle)) === $needle);
    }
public function startswith(string $haystack, string $needle) : bool
    {
        return (substr($haystack, 0, strlen($needle)) === $needle);
    }
public function startswith ( string $ haystack , string $ needle ) : bool { return ( substr ( $ haystack , 0 , strlen ( $ needle ) ) === $ needle ) ; }
String startswith.
@param string $haystack The input string.
@param string $needle The string search for.
@return bool Returns true if the $haystack ends with the $needle, otherwise false.
String startswith .