note 21701 deleted from control-structures.switch by david
| From: | david@php.net | Date: | Thu, 30 May 2002 15:54:35 +0000 |
| Subject: | note 21701 deleted from control-structures.switch by david | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-31220@lists.php.net to get a copy of this message | ||
to pwykes@osv.org
<quote>
The conditional example using 'or' did not work for me. The example was:
case "é" || "è" || "ê":
$a = str_replace(substr($a,$i,1),"e",$a);
break;
</quote>
using brackets around the conditions it'll work!
example:
...
case ("é" || "è" || "ê"):
$a = str_replace(substr($a,$i,1),"e",$a);
break;
...