Help preg_replace with Non-English character
- From: myphplist@xxxxxxxxx (Shelley)
- Date: Thu, 22 May 2008 16:40:58 +0800
Hi all,
Just a question, I want to replace some Chinese characters with
preg_replace().
But it does not work.
The string is
$str = 'test<<你好>>http://www.phparch.cn/ 完成';
The ideal output is :
test<a href="http://www.phparch.cn">你好</a> 完成
Any suggestion will be greatly appreciated.
--
Regards,
Shelley
- Follow-Ups:
- Re: [PHP] Help preg_replace with Non-English character
- From: Richard Heyes
- Re: [PHP] Help preg_replace with Non-English character
- Prev by Date: Re: [PHP] Semi-OT: PHP Login with client security
- Next by Date: Re: [PHP] Help preg_replace with Non-English character
- Previous by thread: Re: [PHP] page suck attack
- Next by thread: Re: [PHP] Help preg_replace with Non-English character
- Index(es):
Relevant Pages
|