Re: Should examples be CLI or WEB output?
| From: | Richard Quadling | Date: | Fri, 23 Apr 2010 09:59:40 +0000 |
| Subject: | Re: Should examples be CLI or WEB output? | ||
| References: | 1 2 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969381689@lists.php.net to get a copy of this message | ||
On 23 April 2010 10:56, Simion Onea <simionea@gmail.com> wrote:
> 2010/4/23 Richard Quadling <rquadling@googlemail.com>:
>> Hi.
>>
>> Just looking through some of the DateTime examples and noticed that
>> they are using <br /> as a line terminator.
>>
>> So, very much a web output.
>>
>> Is there any style/preference to have the examples as CLI or Web?
>
> Hi!
>
> IMHO examples and output shoult be as ”plain-text”, without HTML
> formatting. At least for the functions not related to HTML.
>
> Regards,
> Simion.
>
I agree. It is nice and easy to cut and paste an example to the
console with the CLI PHP loaded and waiting.
--
-----
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