note 96374 added to control-structures.switch

From: Date: Tue, 23 Feb 2010 19:43:06 +0000
Subject: note 96374 added to control-structures.switch
Groups: php.notes 
Request: Send a blank email to php-notes+get-166301@lists.php.net to get a copy of this message
lchanady at gmail dot com below mentioned that ------------------------------------------- $a = "abc"; $b = "def"; switch($c){ case "a": echo "a"; break; case "b": echo "b"; break; default: echo "default"; break; } ------------------------------------------ the snippet above will not raise an error,but it's not the case, it does yield an notice.So what he said is wrong. (PHP Version 5.3.0) ---- Server IP: 117.104.162.229 Probable Submitter: 116.237.199.206 (proxied: 116.237.199.206) ---- Manual Page -- http://www.php.net/manual/en/control-structures.switch.php Edit -- https://master.php.net/note/edit/96374 Del: integrated -- https://master.php.net/note/delete/96374/integrated Del: useless -- https://master.php.net/note/delete/96374/useless Del: bad code -- https://master.php.net/note/delete/96374/bad+code Del: spam -- https://master.php.net/note/delete/96374/spam Del: non-english -- https://master.php.net/note/delete/96374/non-english Del: in docs -- https://master.php.net/note/delete/96374/in+docs Del: other reasons-- https://master.php.net/note/delete/96374 Reject -- https://master.php.net/note/reject/96374 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#166301) next »