Re: Wanting to better understand

From: Date: Wed, 02 Oct 2002 03:22:29 +0000
Subject: Re: Wanting to better understand
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-118515@lists.php.net to get a copy of this message
Paul Nicholson wrote:
If ($days > 30) { $days = "<strong><font color='ff0000'>" . $days . "</font></strong>"; }elseif ($days > 45) { $days = "<strong><font color='ff00ff'>" . $days . "</font></strong>"; }
Just a side note - the elseif when used like this is superfluous. If $days is not greater than 30, then it must be 30 or less. Thus, it will never be greater than 45.

« previous php.general (#118515) next »