$uri
$uri :
parseURI(string $uri, string|null $command, array|null $params, string|null $mnt, string|null $path) : void
Parses an URI and splits it into four sub-parts : mount point, command name, command parameters, and path. Each of these components is optional.
URI syntax: phk://[
On return, if no command: command=params=null Global command: phk://?command[&par=val&...] => path=mnt=null mnt=null => global command
Test cases : phk:// Error phk://mnt1 mnt=mnt1, path='', command=params=null phk://mnt1/p1/p2 mnt=mnt1, path=p1/p2, command=params=null phk://mnt1/p1/p2?cmd&par1=2&par2=3 mnt=mnt1, path=p1/p2, command=cmd, params=array(par1 => 2, par2 => 3) phk://?gcmd mnt=path=null, command=gcmd, params=null
string | $uri | |
string|null | $command | Return value |
array|null | $params | Return value |
string|null | $mnt | Return value - Null only if global command |
string|null | $path | Return value - Null only if global command |
on invalid syntax