Edit report at https://bugs.php.net/bug.php?id=10916&edit=1

 ID:                 10916
 Comment by:         johnnybifter at gmail dot com
 Reported by:        mark at arcabama dot com
 Summary:            OS-independent path parsing
 Status:             Open
 Type:               Feature/Change Request
 Package:            Filesystem function related
 Operating System:   *
 PHP Version:        *
 Block user comment: N
 Private report:     N

 New Comment:

I doubt this will ever appear in the language as it sounds more like a library 
function.
try using this for the OS-independent path parsing
    explode(DIRECTORY_SEPARATOR, $path);


Previous Comments:
------------------------------------------------------------------------
[2001-05-16 23:37:37] mark at arcabama dot com

I've looked for something like this in the existing function suite but haven't 
found it...

Because Windoze and Linux (at least) use different characters to separate 
elements of a file path, I think a function that parses a path into an array of 
subdirectories, basename and extension would be useful.

------------------------------------------------------------------------



-- 
Edit this bug report at https://bugs.php.net/bug.php?id=10916&edit=1

Reply via email to