Re: Should examples be CLI or WEB output?
| From: | Richard Quadling | Date: | Fri, 23 Apr 2010 12:28:10 +0000 |
| Subject: | Re: Should examples be CLI or WEB output? | ||
| References: | 1 2 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969381693@lists.php.net to get a copy of this message | ||
On 23 April 2010 13:15, Daniel Convissor
<danielc@analysisandsolutions.com> wrote:
> Hi Richard:
>
> On Fri, Apr 23, 2010 at 10:45:07AM +0100, Richard Quadling wrote:
>>
>> Just looking through some of the DateTime examples and noticed that
>> they are using <br /> as a line terminator.
>
> I agree, CLI output is preferable.
>
> Several of the DateTime examples are overblown in general. The one
> DateTime::add() <example> has six sample statements in it. For such a
> simple function, only one example is necessary.
>
> I'm in the middle of doing a spring cleaning on the DateTime docs.
> Integrating and pruning user comments, improving the format and
> simplifying examples. I'll change the <br />'s as part of that.
>
> Thanks,
>
> --Dan
>
> --
> T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
> data intensive web and database programming
> http://www.AnalysisAndSolutions.com/
> 4015 7th Ave #4, Brooklyn NY 11232 v: 718-854-0335 f: 718-854-0409
>
DanielC, that's what triggered my question.
DanielE, essentially, I was talking about the use of "\n" vs "<br />" vs
PHP_EOL
--
-----
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling