note 93138 added to control-structures.break

From: Date: Tue, 25 Aug 2009 11:52:27 +0000
Subject: note 93138 added to control-structures.break
Groups: php.notes 
Request: Send a blank email to php-notes+get-159865@lists.php.net to get a copy of this message
Just to clarify the post below from webmaster at kayfar dot com: When using the switch statement you still have to escape your vars like this: case 'banner': This also works, but >banner< is interpreted as a constant and as it is not defined an E_NOTICE is triggered and the constant name it self (='banner') is returned: case banner: Just wanted to clarify this, so people don't get a wrong idea. Christian Gahlert ---- Server IP: 69.147.83.197 Probable Submitter: 91.51.118.238 ---- Manual Page -- http://www.php.net/manual/en/control-structures.break.php Edit -- https://master.php.net/note/edit/93138 Del: integrated -- https://master.php.net/note/delete/93138/integrated Del: useless -- https://master.php.net/note/delete/93138/useless Del: bad code -- https://master.php.net/note/delete/93138/bad+code Del: spam -- https://master.php.net/note/delete/93138/spam Del: non-english -- https://master.php.net/note/delete/93138/non-english Del: in docs -- https://master.php.net/note/delete/93138/in+docs Del: other reasons-- https://master.php.net/note/delete/93138 Reject -- https://master.php.net/note/reject/93138 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#159865) next »