Re: Alternating table rows...

From: Date: Fri, 10 May 2002 19:32:07 +0000
Subject: Re: Alternating table rows...
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-96996@lists.php.net to get a copy of this message
Robert Cummings wrote: > > The more generic approach: > > function getNextColour( &$lastIndex, $colourList ) > { > return $colourList[(++$lastIndex % count( $colourList ))]; Ummmm... $lastIndex++, don't want to start on the second entry :) Cheers, Rob. -- .-----------------. | Robert Cummings | :-----------------`----------------------------. | Webdeployer - Chief PHP and Java Programmer | :----------------------------------------------: | Mail : mailto:robert.cummings@webmotion.com | | Phone : (613) 731-4046 x.109 | :----------------------------------------------: | Website : http://www.webmotion.com | | Fax : (613) 260-9545 | `----------------------------------------------'

« previous php.general (#96996) next »