Re: [PHP4BETA] CVS update: php4/ext/pcre

From: Date: Tue, 25 May 1999 20:02:51 +0000
Subject: Re: [PHP4BETA] CVS update: php4/ext/pcre
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-1032@lists.php.net to get a copy of this message
Rasmus Lerdorf wrote: > I agree completely on the aliases thing. But it sort of was for backward > compatibility purposes. > > We have ereg() and ereg_replace() currently. The proposal was to > introduce: preg_match() and preg_replace() where preg_match() would be > equivalent in functionality to ereg(). This is where I suggested we might > want to make an alias such that preg() did the same as preg_match() to > help the folks who would expect the preg() function to exist. I guess > not a pure backward compatibility alias, but close. I definitely wasn't > suggesting aliasing pcre_* to preg_* -- End of excerpt from Rasmus Lerdorf Ok, how about this. There will be preg_match, preg_replace, and preg_split, and we can also alias preg to preg_match. Would that satisfy the majority? -Andrey Everything should be made as simple as possible, but not simpler. -Albert Einstein -- PHP 4 Beta

« previous php.version4 (#1032) next »