On Thursday 19 April 2001 19:57, you wrote:
> Which is better?
>
> function blah() {
> switch( $bob ) {
> case 1:
> return "this";
> function blah() {
> $retval = "";
>
> switch( $bob ) {
> case 1:
> $retval = "this";
> break;
> In other words, is it good practice to exit out of a block (any
> block... not just switch; if, for, while) prematurely as demon-
> strated in the first example? Or should you do it as demon-
> strated in the second example?
Well, what is more readable, understandable, clearer?
--
Christian Reiniger
LGDC Webmaster (http://sunsite.dk/lgdc/)
REALITY.SYS corrupted ... reboot Universe [Y,n]?
--
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]