strtoupper in eregi_replace
| From: | Michael Schueller | Date: | Thu, 22 Jul 1999 08:29:51 +0000 |
| Subject: | strtoupper in eregi_replace | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-8949@lists.php.net to get a copy of this message | ||
Hi,
I tried to replace a string by his uppercase-expression, like
$val = "abcde";
$val = eregi_replace("a(.*)e", strtoupper("\\1"), $val);
but it didn't work.
Output should be "BCD", but was "bcd".
What's wrong?
Regards,
Michael
(PHP 3.0.7, LINUX RedHat 5.1, Kernel 2.0.34)