What is the use of PHP_EOL
Moderator: General Moderators
What is the use of PHP_EOL
What is the use of PHP_EOL,generally in which case we will be using this?
Re: What is the use of PHP_EOL
Different operating systems use different characters to signify an end of a line in a file. Rather than hardcoding to use "\L" (which isn't really a character - just an example), you can use PHP_EOL, which will allow your script to be more cross-OS compatible.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Re: What is the use of PHP_EOL
what else is used besides \r\n and \n?
Re: What is the use of PHP_EOL
None really. Read until your heart's content
: http://en.wikipedia.org/wiki/Newline
Re: What is the use of PHP_EOL
heh. Show me someone who doesn't love wikipedia and I'll show you someone who doesn't have a soul. 