Re: Suggestion

From: Date: Sat, 06 Sep 2008 20:16:17 +0000
Subject: Re: Suggestion
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-29236@lists.php.net to get a copy of this message
Greetings, Mohammad Afrashteh. In reply to Your message dated Saturday, September 6, 2008, 21:17:29, > Hello. I have an idea about Coding Standards. > I think Code1 have more readability than Code2: That's up to your taste. I'm using first formatting. > Code1: > if ((condition1) || (condition2)) > { > action1; > action2; > } > else if ((condition3) && (condition4)) > { > action3; > action4; > } > else > { > action5; > action6; > } > Code2: > if ((condition1) || (condition2)) { > action1; > action2; > } elseif ((condition3) && (condition4)) { > action3; > action4; > } else { > action5; > action6; > } > Is not it? Thank You. -- Sincerely Yours, ANR Daemon <anrdaemon@freemail.ru>

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