mini\Util\Path::splitPrefix() Method

private static

Signature

private static function splitPrefix(string $path): array

Parameters

Name Type Default Description
$path string required Documentation missing

Returns

array

Documentation

Split a normalized path into [prefix, rest].

Prefix can be:

  • "" (relative)
  • "/" (POSIX root)
  • "//" (UNC root)
  • "C:" (Windows drive prefix)

Rest is the remaining path without leading slashes.

Source

src/Util/Path.php:668-701