"Mike Bretz" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> 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

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to