note 120690 rejected from function.mb-ereg by tularis
| From: | tularis@php.net | Date: | Wed, 22 Feb 2017 09:18:16 +0000 |
| Subject: | note 120690 rejected from function.mb-ereg by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-208778@lists.php.net to get a copy of this message | ||
Note Submitter: benchbiba at hotmail dot com
----
// mb_ereg() not working properly.
$badword ="ÙØ§Ù"; // which mean F***.
$TextToCheck = "Ù٠اÙÙÙÙ ÙÙØ§Ù اÙÙØ«Ùر
Ù
٠اÙÙÙØ§Ùب"; // In universe there's a lot of planets.
mb_ereg("\b".$badword."\b", $TextToCheck, $text);
echo $text[0]; // the output $text : ÙØ§Ù
// which mean that the word ("ÙÙØ§Ù" = there) is found as
"ÙØ§Ù" which mean that mb_ereg didn't get i count the first letter
"Ù" (ÙÙ) "";
// any way there's many other situation like this, any solution?