Isn't this / ?
/
Why is there a constant for it? It's not like it can change, right?
PATH_SEPARATOR is the character used to separate many paths in a unique string (like include_path in php.ini).
PATH_SEPARATOR
include_path
Its value is ':' on a UNIX system and ';' on a Windows system.
':'
';'
What you're talking about ('/' on UNIX and '' on Windows) is the DIRECTORY_SEPARATOR constant.
'/'
''
DIRECTORY_SEPARATOR
548k questions
547k answers
4 comments
86.3k users