src/Viserio/Component/Foundation/EnvironmentDetector.php
private static function startsWith(string $haystack, string $needle): bool
    {
        return $needle !== '' && \mb_strpos($haystack, $needle) === 0;
    }
private static function startsWith(string $haystack, string $needle): bool
    {
        return $needle !== '' && \mb_strpos($haystack, $needle) === 0;
    }
Determine if a given string starts with a given substring.

@param string $haystack
@param string $needle

@return bool