This commit is contained in:
parent
1f78547ca2
commit
d8db20e9bd
@ -1,6 +1,6 @@
|
|||||||
class Program {
|
class Program {
|
||||||
|
|
||||||
string[] parsePathComponents(string $path, bool $endSlash=true, bool $base=false) {
|
string[] parsePathComponents(string $path, bool $endSlash=true, bool $file=false) {
|
||||||
string[] $retArray;
|
string[] $retArray;
|
||||||
$path = trim($path);
|
$path = trim($path);
|
||||||
string $str, $temp;
|
string $str, $temp;
|
||||||
@ -14,7 +14,7 @@ class Program {
|
|||||||
$temp = '';
|
$temp = '';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
($base && $temp) ? $retArray[$temp] = $str + $temp : NULL;
|
($file && $temp) ? $retArray[$temp] = $str + $temp : NULL;
|
||||||
return $retArray;
|
return $retArray;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user