[development] Note that PHP arrays are fast

Dries Buytaert dries.buytaert at gmail.com
Thu Apr 12 06:24:10 UTC 2007


On 10 Apr 2007, at 04:35, Rob Barreca wrote:
>> $flip = array('even' => 'odd', 'odd' => 'even');
>> $class = $flip[$class];
> I think the second is more readable too and allows us to easily to  
> chains if we want tri-color rows or rainbows. :)

*lol* :)


--
Dries Buytaert  ::  http://www.buytaert.net/



More information about the development mailing list