Coding Standards and Curly Braces

From: Date: Tue, 10 Jun 2003 19:27:40 +0000
Subject: Coding Standards and Curly Braces
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-5890@lists.php.net to get a copy of this message
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 (#5890) next »