note 75973 added to control-structures.switch

From: Date: Mon, 25 Jun 2007 12:53:45 +0000
Subject: note 75973 added to control-structures.switch
Groups: php.notes 
Request: Send a blank email to php-notes+get-127941@lists.php.net to get a copy of this message
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. ---- Server IP: 83.137.20.120 Probable Submitter: 145.18.18.130 ---- Manual Page -- http://www.php.net/manual/en/control-structures.switch.php Edit -- https://master.php.net/note/edit/75973 Del: integrated -- https://master.php.net/note/delete/75973/integrated Del: useless -- https://master.php.net/note/delete/75973/useless Del: bad code -- https://master.php.net/note/delete/75973/bad+code Del: spam -- https://master.php.net/note/delete/75973/spam Del: non-english -- https://master.php.net/note/delete/75973/non-english Del: in docs -- https://master.php.net/note/delete/75973/in+docs Del: other reasons-- https://master.php.net/note/delete/75973 Reject -- https://master.php.net/note/reject/75973 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#127941) next »