Re: cvs: phpdoc /en/reference/array/functions array-combine.xml
| From: | Mehdi Achour | Date: | Fri, 30 May 2003 17:27:16 +0000 |
| Subject: | Re: cvs: phpdoc /en/reference/array/functions array-combine.xml | ||
| References: | 1 2 | Groups: | php.doc |
| Request: | Send a blank email to phpdoc+get-969354092@lists.php.net to get a copy of this message | ||
hi,
Hi!Maybe a little convention in the howto will be needed then :) I think that everything enclosed between <programlisting> and </programlisting> tags should safely be copy/pasted in a PHP script. Here's what I suggest regarding this : If it's a "little" output, we can consider using the // style comment on the same line that produce it, for example : echo mysql_num_rows($result); // 5 If it's a "huge" output, like the result of a print_r(), we should use the <screen></screen> construction. Just my opinion :) MehdiI disagree with these changes and don't consider them upgrades, I intentionally put the output in the example as to make a clean cut-n-paste example. In fact, there are times when I change it the other way around :) Why do you feel using <screen> is "an upgrade"?I guess because that is somewhat in line with the guidelines, maybe... BTW I cannot find thic convention in the howto ;) But I remember to something like that. Anyway, I think this should be dealt with on a case by case basis. Sometimes it is OK to put the output into the code, and sometimes it is not.