Re: New lines

From: Date: Tue, 03 Feb 2004 20:44:01 +0000
Subject: Re: New lines
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-176726@lists.php.net to get a copy of this message
From: "John Nichel" <jnichel@by-tor.com> > If all the OP wants to do is echo out the file, then why not just use > the file() function. Then each line is loaded up into an array element, > and you've saved yourself a bit of cpu. And your example above > doesn't address the OP's claim that it is not handling new lines. file_get_contents() would be the fastest. And once the OP learns the difference between TEXT and HTML, he'll realize he just needs to use the nl2br() function. :) ---John Holmes...

« previous php.general (#176726) next »