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]
- [PHP] Which is better coding style... Boget, Chris
- Re: [PHP] Which is better coding style... Christian Reiniger
- RE: [PHP] Which is better coding style... ..s.c.o.t.t.. [gts]
- RE: [PHP] Which is better coding style... Sander Pilon
- RE: [PHP] Which is better coding style... ..s.c.o.t.t.. [gts]
- Re: [PHP] Which is better coding s... Norbert Pfeiffer
- Re: [PHP] Which is better cod... David Bouw
- RE: [PHP] Which is better coding s... Philip Olson
- Re: [PHP] Which is better cod... Chris Lee
- Re: [PHP] Which is better coding s... Chris Adams
- Re: [PHP] Which is better coding s... Plutarck
- RE: [PHP] Which is better coding s... Joe Sheble \(Wizaerd\)