note 84573 rejected from function.mb-eregi-replace by danbrown
| From: | danbrown@php.net | Date: | Sat, 19 Jul 2008 19:17:42 +0000 |
| Subject: | note 84573 rejected from function.mb-eregi-replace by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-141720@lists.php.net to get a copy of this message | ||
Note Submitter: kvn110 at yandex dot ru
----
Hello!
It seems that mb_eregi_replace don't work for me or I'm doing something wrong?
$txt = 'ÐÑзÑка (Avril Lavigne, Battlelore, Charon, Deep Purple, Depeche Mode,
Michael Jackson, Nokturnal Mortum, OST Mortal Kombat, Rising Force, The best of James Bond,
ÐлиÑÐ), мÑзÑка';
$str = 'мÑзÑка';
mb_regex_encoding ( $this->encoding );
return mb_eregi_replace ( '('. mb_strtolower ( $str, $this->encoding ) .')' ,
'<span>\\1</span>', $txt );
For the first word 'ÐÑзÑка' don't worked! :(