Re: Two color rows in table inside while iteration -- just say no to mod

From: Date: Wed, 05 May 2010 17:55:15 +0000
Subject: Re: Two color rows in table inside while iteration -- just say no to mod
References: 1 2 3 4 5 6 7 8  Groups: php.general 
Request: Send a blank email to php-general+get-304920@lists.php.net to get a copy of this message
On 3 May 2010 08:25, Jochen Schultz <jschultz@sportimport.de> wrote: > > [snip] > > And unless we are adding a multiple seconds to the load time is anyone >> going to notice a difference of 1 second? >> > > yes > > > It's really not that big a deal. http://pastie.org/947121 Personally, I think using modulus is as nice a solution as flipping a bit. Maybe more elegant since it's extendable to more than 2 states if required. Michiel

« previous php.general (#304920) next »