Re: PHP 6.0 Wishlist
| From: | Ron Korving | Date: | Fri, 16 Sep 2005 12:32:32 +0000 |
| Subject: | Re: PHP 6.0 Wishlist | ||
| References: | 1 2 3 4 5 6 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-19050@lists.php.net to get a copy of this message | ||
You mean that preg_match() would match an ordinary string just fine? I
wouldn't prefer that for performance reasons. I'd like to choose per case
how I want the matching done (regexp or not).
Ron
"Kevin Waterson" <kevin@oceania.net> schreef in bericht
news:20050916222119.222d03ea.kevin@oceania.net...
> This one time, at band camp, "Ron Korving" <r.korving@xit.nl> wrote:
>
> > The problem with this would be that it can't be decided on a per-case
basis,
> > but only for the whole switch, which would make the execution slower.
That's
> > why I'd prefer a "regcase", but I guess this can be considered ugly
becuase
> > e.g. C(++) doesn't have a "regcase" either and it's quite a diversion
from
> > the known syntax.
>
> Isnt all this taken care of with preg_match?
>
> Kevin
>
> --
> "Democracy is two wolves and a lamb voting on what to have for lunch.
> Liberty is a well-armed lamb contesting the vote."