ctype_alpha

Supported Versions: PHP 4 >= 4.0.4, PHP 5, PHP 7, PHP 8
Check for alphabetic character(s)
ctype_alpha(mixed $text): bool
        }



        
$splitDriveLetter = function ($path) {

            return (
\strlen($path) > && ':' === $path[1] && '/' === $path[2] && ctype_alpha($path[0]))

                ? [
substr($path2), strtoupper($path[0])]

                : [
$pathnull];

        };
    public function isAbsolutePath(string $file)

    {

        return 
'' !== $file && (strspn($file'/\\'01)

            || (
\strlen($file) > && ctype_alpha($file[0])

                && 
':' === $file[1]

                && 
strspn($file'/\\'21)

            )