Re: Coding Standards and Curly Braces

From: Date: Tue, 10 Jun 2003 19:33:11 +0000
Subject: Re: Coding Standards and Curly Braces
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-5892@lists.php.net to get a copy of this message
Doah, preg_replace("/without the curly braces/", "without the carriage returns", $message); Yo, Dannie Dannie Stanley 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";
    }
Thanks, Dannie


« previous php.pear.general (#5892) next »