Anyway... cool way to use switch.... Obviously i've been working too much with C, that i never thought of a way, you could use the conditional-expression in the "case", not in the switch ;)
Sascha > switch (TRUE) { > case ($days > 45): > $days = "<strong><font color='ff00ff'>" . $days . > "</font></strong>"; break; case ($days > 30): > $days = "<strong><font color='ff0000'>" . $days . > "</font></strong>"; break; } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php