note 88350 deleted from control-structures.break by danbrown
| From: | danbrown@php.net | Date: | Wed, 21 Jan 2009 00:14:08 +0000 |
| Subject: | note 88350 deleted from control-structures.break by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-149565@lists.php.net to get a copy of this message | ||
Note Submitter: seibermaki at gmail dot com
----
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?