Re: Coding Standards and Curly Braces
| From: | Dannie Stanley | Date: | Tue, 10 Jun 2003 19:40:27 +0000 |
| Subject: | Re: Coding Standards and Curly Braces | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-5894@lists.php.net to get a copy of this message | ||
Bertrand Mansion wrote:
<dannie@spinweb.net> wrote :So it is OK for functions, true? Do you have documentation for your curly brace response, i.e. I looked here: http://pear.php.net/manual/en/standards.control.php and couldn't find specific doc... a link to the RFC would be helpful. Thanks, DannieWe are considering adopting PEAR coding standards... so one question: Can we put a carriag return after parenthesized control structures and still be within the coding standards? I have seen functions declared with the carriage return but have only seen if/for statements without the curly brace. So in other words is this valid also: for($i=0; $i<$something; $i++) {No, sorry. Bertrand Mansion Mamasamecho "yo";}