Re: CS discussion

From: Date: Tue, 15 Jul 2003 12:59:34 +0000
Subject: Re: CS discussion
References: 1  Groups: php.pear.qa 
Request: Send a blank email to pear-qa+get-51@lists.php.net to get a copy of this message
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; } ?> Regards -- Bruno Pedro PTM.com Key fingerprint = B398 3A92 704F C74D A984 2424 26F0 189E 9FEE CDC8 http://search.keyserver.net:11371/pks/lookup?op=get&search=0x9FEECDC8

Attachment: [application/pgp-signature] This is a digitally signed message part signature.asc
« previous php.pear.qa (#51) next »