Re: Wanting to better understand

From: Date: Wed, 02 Oct 2002 03:32:55 +0000
Subject: Re: Wanting to better understand
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-118516@lists.php.net to get a copy of this message
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; }

« previous php.general (#118516) next »