RE: [PHP] Which is better coding style...
| From: | Philip Olson | Date: | Thu, 19 Apr 2001 21:48:37 +0000 |
| Subject: | RE: [PHP] Which is better coding style... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-49431@lists.php.net to get a copy of this message | ||
coding style? here's what pear has to say :
http://www.php.net/manual/en/pear.standards.php
http://www.php.net/manual/en/pear.standards.control.php
[ example ]
switch (condition) {
case 1:
action1;
break;
case 2:
action2;
break;
default:
defaultaction;
break;
}
[ /example ]
variables can be very useful.
return is cool too.
:)
regards,
philip