private static function isAbsolute($path)
    {
        $path = trim($path);

        if ($path === '') {
            return false;
        }

        $length = strcspn($path, '/\\');

        return $length === 0 || $path[$length - 1] === ':';
    }
private static function isAbsolute($path)
    {
        $path = trim($path);

        if ($path === '') {
            return false;
        }

        $length = strcspn($path, '/\\');

        return $length === 0 || $path[$length - 1] === ':';
    }
private static function isAbsolute ( $ path ) { $ path = trim ( $ path ) ; if ( $ path === '' ) { return false ; } $ length = strcspn ( $ path , '/\\' ) ; return $ length === 0 || $ path [ $ length - 1 ] === ':' ; }
Tells if the path is an absolute path.
@param string $path The file system path to test
@return bool True if the path is an absolute path, false if not
Tells if the path is an absolute path .