|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-11-21 08:32 UTC] tony2001@php.net
[2004-11-21 08:52 UTC] ibar at 163 dot com
[2004-11-21 08:59 UTC] tony2001@php.net
[2004-11-21 17:35 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 08:00:01 2025 UTC |
Description: ------------ When I use the eregi_replace function, I can't replace the traditional chinese letter "4" with the simplified chinese letter "4". But the str_replace function can do. Can you tell me which function can be used to complete it? PS: the tradional chinese letter "4"'s specific character is 0xA57C. But the problem appeared when replaced to the letter "7C" . Reproduce code: --------------- $Strings="i am ?| ^o^"; print eregi_replace("?|","4",$Strings); Expected result: ---------------- i am 4 ^o^ Actual result: -------------- Warning: ereg_replace(): REG_EMPTY in /home/site/math.php on line 9