Bug #5288 Updated: bash style case for switch()
| From: | sterling@php.net | Date: | Sun, 27 Jan 2002 06:37:15 +0000 |
| Subject: | Bug #5288 Updated: bash style case for switch() | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-78223@lists.php.net to get a copy of this message | ||
ID: 5288
Updated by: sterling
Reported By: Tomas V.V.Cox <cox@idecnet.com>
Old Status: Open
Status: Closed
Bug Type: Feature/Change Request
Operating System: Any
PHP Version: 4.0.1
New Comment:
No, it would be very wierd. ;)
seriously, php is not bash, it has a lot of other neat
functions/methods to make this work much easier.
Previous Comments:
------------------------------------------------------------------------
[2000-06-30 19:47:12] Tomas V.V.Cox <cox@idecnet.com>
It could be very usefull if we can have, a bash style switch support.
Ex:
switch ($foo){
case ("1"):
echo "hello";
break;
case ("2"):
case ("1"): // <-- something like this
echo "bye";
break;
}
Thanks
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=5288&edit=1