PHP_EOL

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
cicerojruk
Forum Newbie
Posts: 2
Joined: Wed Oct 29, 2008 5:44 am

PHP_EOL

Post by cicerojruk »

Good Day folks,
Just a quick question:
What is PHP_EOL and what does it do?
Many thanks,
Cicero
cicerojruk
Forum Newbie
Posts: 2
Joined: Wed Oct 29, 2008 5:44 am

Re: PHP_EOL

Post by cicerojruk »

A friend has given me the answer, I leave it here, just in case someone needs it.

"PHP_EOL (EOL stands for End Of Line) is used to insert New-Line Character for the current OS which the user is viewing. Of course, you would use this in file system rather than in HTML where you'd just use "<br/>".

Regards,
Cicero
User avatar
playgames
Forum Newbie
Posts: 22
Joined: Tue Sep 04, 2007 4:28 am

Re: PHP_EOL

Post by playgames »

add:since PHP 4.3.10 & PHP 5.0.2
Post Reply