i say the first style.

unneeded variables and other thingies just
obscure things and make it harder to maintain.


> -----Original Message-----
> From: Boget, Chris [mailto:[EMAIL PROTECTED]]
> Subject: [PHP] Which is better coding style...
> 
> Which is better?
> 
> function blah() {
>   switch( $bob ) {
>     case 1:
>        return "this";
> 
>     case 2:
>       return "that";
> 
>     default:
>       return "other";
> 
>   }
> }
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to