Re: Re: Switch - Case Statement Questions

From: Date: Sat, 17 Nov 2012 03:23:05 +0000
Subject: Re: Re: Switch - Case Statement Questions
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-319719@lists.php.net to get a copy of this message
On Fri, Nov 16, 2012 at 12:41 PM, Sebastian Krebs <krebs.seb@gmail.com> wrote: > Beside this it can be rewritten as > > switch ((int) (($count-1) / 7) { > case 0: // 1-7 > case 1: // 8 - 14 > default: // above 15 > } Nice code refactoring :) Just a tad obscure for someone coming along later, perhaps.

« previous php.general (#319719) next »