2011年4月12日 星期二

PHP_EOL constant

This is a PHP constant that represents the correct end-of line string for the particular operating system you are running the code on.

If you plan to create cross-platform PHP applications this is the correct way to terminate a line in a text file instead of writing code to distinguish between the string "\r\n" and "\n" yourself.

沒有留言:

wibiya widget