src/Koldy/Util.php
public static function startsWith(string $yourString, string $startsWith, string $encoding = null): bool
    {
        return mb_substr($yourString, 0, mb_strlen($startsWith, $encoding ?? Application::getEncoding()), $encoding ?? Application::getEncoding()) === $startsWith;
    }
public static function startsWith(string $yourString, string $startsWith, string $encoding = null): bool
    {
        return mb_substr($yourString, 0, mb_strlen($startsWith, $encoding ?? Application::getEncoding()), $encoding ?? Application::getEncoding()) === $startsWith;
    }
public static function startsWith ( string $ yourString , string $ startsWith , string $ encoding = null ) : bool { return mb_substr ( $ yourString , 0 , mb_strlen ( $ startsWith , $ encoding ?? Application :: getEncoding ( ) ) , $ encoding ?? Application :: getEncoding ( ) ) === $ startsWith ; }
Check if string starts with given string - it supports UTF-8, but it's case sensitive

@param string $yourString
@param string $startsWith
@param string|null $encoding - by default, using application config (encoding) or uses UTF-8 by default

@return bool
@throws Exception
Check if string starts with given string - it supports UTF - 8 but it s case sensitive