Re: PHP 6.0 Wishlist
| From: | Ron Korving | Date: | Thu, 15 Sep 2005 18:20:20 +0000 |
| Subject: | Re: PHP 6.0 Wishlist | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-19003@lists.php.net to get a copy of this message | ||
"Mike Bretz" <m.bretz@metropolis-ag.de> wrote in message
news:43281520.4000209@metropolis-ag.de...
> Also an useful feature would be "const" on function parameters.
Hmm, I like that ;) That may even provide a performance increasing
opportunity...
I have another idea I came up with today: regular expression switches, but
it would be difficult without adding to the syntax.
switch ($str)
{
case "abc":
echo "it was ABC!\n";
break;
regcase "/^[0-9]+$/i":
echo "it was a number!\n";
break;
default:
echo "it was no number :-(\n";
break;
}
Just an idea ;)
Ron