Re: switch, equality and preg_match

From: Date: Mon, 02 Jul 2001 20:47:58 +0000
Subject: Re: switch, equality and preg_match
References: 1 2 3 4  Groups: php.dev 
Request: Send a blank email to php-dev+get-58745@lists.php.net to get a copy of this message
On Sun, 01 Jul 2001, Andrei Zmievski wrote: > At 09:06 AM 7/1/01 -0500, Daniel Beckham wrote: > >Someone poke me when you decide what to do and I'll change the return type > >in the preg_match docs. > > I need to take a closer look at the code to see why it is that way. Okay, this is because both preg_match and preg_match_all use the same function internally, so the return type for both is an integer indicating the number of matches. Do you really think it should be changed? -Andrei "Tomorrow the sun will rise. And who knows what the tide will bring?" - Tom Hanks, in "Cast Away"

« previous php.dev (#58745) next »