Re: CS discussion

From: Date: Tue, 15 Jul 2003 13:00:35 +0000
Subject: Re: CS discussion
References: 1 2  Groups: php.pear.qa 
Request: Send a blank email to pear-qa+get-52@lists.php.net to get a copy of this message
On Tue, 15 Jul 2003, Bruno Pedro wrote: > On Tue, 2003-07-15 at 12:45, Lukas Smith wrote: > > > I would like to extend this to also include a standard on how to break > > up such structures across multiple lines > > > > > > <?php > > if ((condition1) > > || (condition2) > > ) { > > action1; > > } elseif ((condition3) > > && (condition4) > > ) { > > action2; > > } else { > > defaultaction; > > } > > ?> > > How about this: > > <?php > if ( > (condition1) || > (condition2) > ) { > action1; > } elseif ( > (condition3) && > (condition4) > ) { > action2; > } else { > defaultaction; > } > ?> BAD, Lukas' idea is pretty nice. Derick -- ------------------------------------------------------------------------- Derick Rethans http://derickrethans.nl/ JDI Media Solutions http://www.jdimedia.nl/ International PHP Magazine http://www.php-mag.net/ -------------------------------------------------------------------------

« previous php.pear.qa (#52) next »