Re: preg_quote: possible arg addition for regex delimiter escaping

From: Date: Thu, 25 May 2000 22:48:18 +0000
Subject: Re: preg_quote: possible arg addition for regex delimiter escaping
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-19452@lists.php.net to get a copy of this message
I'm not sure what an extra flag nets you other than eating up an arg slot (since PHP has no named args). It may be additive, but if another option gets added, would it be another flag? If it's more than a flag's worth of option, is someone going to have to do something like: preg_match("/$regex/", $teststr, PREG_QUOTEDELIM, $blah); ?? When the value of that flag wasn't necessary before? This is exactly what preg_quote was designed for, not extra args. I personally find using another function to be the most orthogonal and therefore most elegant solution. ... Not that I'd mind seeing named args in PHP though ;) -- chuck

« previous php.dev (#19452) next »