I’m looking at some code that uses PATH_SEPARATOR. I don’t think this constant is explicitly defined anywhere but I could be wrong. Does anyone know if this is a native constant in PHP, and do other similar separators exist without needing to define? I’m trying to see if I can use LINE_SEPARATOR, PARAGRAPH_SEPARATOR, and such but nothing worked. How do I define these if I need to?
I’m looking at some code that uses PATH_SEPARATOR . I don’t think this constant
Share
The documentation will yield all the answers you are looking for:
So, looking there,
DIRECTORY_SEPARATOR– The directory separator for the current OS (/for Linux,\for Windows, etc)PATH_SEPARATOR– You already saw that.PHP_EOL– The system’s new line format (\nfor Linux,\r\nfor Windows, etc)PHP_OS– The current operating system.