note 119893 added to control-structures.switch

From: Date: Fri, 16 Sep 2016 05:30:48 +0000
Subject: note 119893 added to control-structures.switch
Groups: php.notes 
Request: Send a blank email to php-notes+get-206598@lists.php.net to get a copy of this message
I had a longer IF sequence and looked for the CASE option. After reading about the SWITCH and the pitfalls/oddities i ran away screaming. There is no-way i dare to use this code. Even the nessity for an extra line with a break makes it odd (the next case line should do). remember: safe code rank much higher than smart code.... I would welcome a newer and better swich (call it which..) ---- Server IP: 72.52.91.14 Probable Submitter: 87.72.51.197 ---- Manual Page -- http://php.net/manual/en/control-structures.switch.php Edit -- https://master.php.net/note/edit/119893 Del: integrated -- https://master.php.net/note/delete/119893/integrated Del: useless -- https://master.php.net/note/delete/119893/useless Del: bad code -- https://master.php.net/note/delete/119893/bad+code Del: spam -- https://master.php.net/note/delete/119893/spam Del: non-english -- https://master.php.net/note/delete/119893/non-english Del: in docs -- https://master.php.net/note/delete/119893/in+docs Del: other reasons-- https://master.php.net/note/delete/119893 Reject -- https://master.php.net/note/reject/119893 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#206598) next »