Re: Coding Standards and Curly Braces
| From: | Bertrand Mansion | Date: | Tue, 10 Jun 2003 19:35:08 +0000 |
| Subject: | Re: Coding Standards and Curly Braces | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-5893@lists.php.net to get a copy of this message | ||
<dannie@spinweb.net> wrote :
> We 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++)
> {
> echo "yo";
> }
No, sorry.
Bertrand Mansion
Mamasam