RE: [PHP] Which is better coding style...

From: Date: Thu, 19 Apr 2001 19:31:20 +0000
Subject: RE: [PHP] Which is better coding style...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-49408@lists.php.net to get a copy of this message
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:Chris.Boget@wild.net] > 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"; > > } > } >

« previous php.general (#49408) next »