Re: strtoupper in eregi_replace
| From: | Andrey Zmievski | Date: | Thu, 22 Jul 1999 13:11:07 +0000 |
| Subject: | Re: strtoupper in eregi_replace | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-8964@lists.php.net to get a copy of this message | ||
Stig Bakken wrote:
> Think order of evaluation. You are actually doing strtoupper() on the
> string "\\1", not on the match result. Do to what you want, you need a
> regexp function that can evaluate the result for you. preg_replace() in
> the latest 4.0 CVS can do that with the "e" modifier.
Actually, preg_replace() in 4.0b1 can do it too.
-Andrey
* We reason deeply, when we forcibly feel. *