note 75973 deleted from control-structures.switch by sp

From: Date: Thu, 22 May 2008 09:56:59 +0000
Subject: note 75973 deleted from control-structures.switch by sp
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-139603@lists.php.net to get a copy of this message
Note Submitter: Okke ---- As a reply to zzo38: please don't -ever- use that code. Labels are generally considered a bad programming practise. If you mis-use switch statements in order to simulate the workings of labels, that's double bad. Why not use a simple if/then/else statement? It's readable and less prone to bugs.

« previous php.notes (#139603) next »