Re: Default Line Seperator

From: Date: Thu, 02 Mar 2000 08:38:54 +0000
Subject: Re: Default Line Seperator
References: 1  Groups: php.pear 
Request: Send a blank email to php-pear+get-65@lists.php.net to get a copy of this message
Sterling Hughes wrote: > I am currently working on a Benchmark class that will, time different > functions and return the execution times for these functions. Anyway, one of > the functions prints results to the screen, and I was wondering, if our > functions print results to the screen what is the line ending. PHP is often run > as an apache module and people usually access it through the web, so should the > line ending be a '<br>', but then that would exclude people who work with PHP > as > a CGI and want to run it via the command line. Make it configurable. Add a constant so that everybody can get whatever he wants. I like this one: $LINE_BREAK = "<br>\n"; This way you can read the output in the browser as well as on the command line. Ulf

« previous php.pear (#65) next »