If the application will run on different operating systems, the directory will not always be a forward slash. This is a backslash on Windows, for example.
Newlines are a similar case. This is \n
on * nix, \r\n
on Windows, etc. Therefore there is PHP_EOL
.
source
to share