I want to split
$path = getenv(\'PATH\');
into its components. How do I determine the separator char in an os-dependent fashion?
Use the PATH_SEPARATOR constant.
PATH_SEPARATOR