note 119893 rejected from control-structures.switch by cmb

From: Date: Fri, 16 Sep 2016 09:46:03 +0000
Subject: note 119893 rejected from control-structures.switch by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-206600@lists.php.net to get a copy of this message
Note Submitter: goodintent at e-mogensen dot dk ---- 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..)

« previous php.notes (#206600) next »