note 88350 added to control-structures.break

From: Date: Wed, 21 Jan 2009 00:00:29 +0000
Subject: note 88350 added to control-structures.break
Groups: php.notes 
Request: Send a blank email to php-notes+get-149564@lists.php.net to get a copy of this message
The following isn't working for me on two of my servers: <?php $a = 'Apple'; switch ($a) { case 'Orange': echo '$a is an orange'; break; default: echo '$a is not an orange<br>'; } ?> It only displays the default echo, and when a is set to Orange ie: index.php?a=Orange, it still shows the default echo. The servers that it doesn't work on are running PHP versions 4.4.7 and 5.2.5. It DOES work on a server running 4.4.2. Any suggestions? ---- Server IP: 64.71.164.2 Probable Submitter: 208.106.75.81 ---- Manual Page -- http://www.php.net/manual/en/control-structures.break.php Edit -- https://master.php.net/note/edit/88350 Del: integrated -- https://master.php.net/note/delete/88350/integrated Del: useless -- https://master.php.net/note/delete/88350/useless Del: bad code -- https://master.php.net/note/delete/88350/bad+code Del: spam -- https://master.php.net/note/delete/88350/spam Del: non-english -- https://master.php.net/note/delete/88350/non-english Del: in docs -- https://master.php.net/note/delete/88350/in+docs Del: other reasons-- https://master.php.net/note/delete/88350 Reject -- https://master.php.net/note/reject/88350 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#149564) next »