Re: Newline

From: Date: Tue, 30 Oct 2007 04:15:58 +0000
Subject: Re: Newline
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-263796@lists.php.net to get a copy of this message
On Monday 29 October 2007, Nathan Nobbe wrote: > if you were going to do that you may as well use PHP_EOL > its cross-platform and doesnt require an define directive. > (php5 only) It's available in 4.3.10 as well, but manual doesn't specify what it defines - I suppose I can echo or vardump it to find out. Also manual doesn't mention "cross-platform", in any case even if it is "cross-platform" it seems pointless because how does PHP know which environment the output is going to be used in? I define 'CR', 'LF', 'CRLF' and use them as circumstances dictate. -- Crayon

« previous php.general (#263796) next »