note 93639 deleted from control-structures.switch by danbrown

From: Date: Mon, 21 Sep 2009 14:11:31 +0000
Subject: note 93639 deleted from control-structures.switch by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-160895@lists.php.net to get a copy of this message
Note Submitter: Sponk ---- Since the code in the previous posting was not working as expected, I decided on posting a tiny correction to that code that worked just fine for me (in particular, note the difference in the "switch"-line): <?php switch (TRUE) { case ($totaltime < 1): echo "That was fast!"; break; case ($totaltime >= 1 && $totaltime < 10): echo "Not fast!"; break; case ($totaltime >= 10): echo "That's slooooow"; break; } ?>

« previous php.notes (#160895) next »