Suggestion
| From: | Mohammad Afrashteh | Date: | Sat, 06 Sep 2008 17:17:29 +0000 |
| Subject: | Suggestion | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-29235@lists.php.net to get a copy of this message | ||
Hello. I have an idea about Coding Standards.
I think Code1 have more readability than Code2:
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.