Posted by Chung Leong on 07/12/06 17:08
monomaniac21 wrote: > it has something like this in it somehere: > > for($i=0; $i<10; $i++) { > echo $i % 2 ? $catodd : $cateven; > } Just use an array: $class = array('blue', 'red'); echo $class[$i%2];
[Back to original message]
Copyright © 2005-2006 Powered by Custom PHP Programming