note 120690 added to function.mb-ereg
| From: | benchbiba at hotmail dot com | Date: | Wed, 22 Feb 2017 08:30:59 +0000 |
| Subject: | note 120690 added to function.mb-ereg | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-208777@lists.php.net to get a copy of this message | ||
// 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?
----
Server IP: 72.52.91.14
Probable Submitter: 196.217.82.2
----
Manual Page -- http://php.net/manual/en/function.mb-ereg.php
Edit -- https://master.php.net/note/edit/120690
Del: integrated -- https://master.php.net/note/delete/120690/integrated
Del: useless -- https://master.php.net/note/delete/120690/useless
Del: bad code -- https://master.php.net/note/delete/120690/bad+code
Del: spam -- https://master.php.net/note/delete/120690/spam
Del: non-english -- https://master.php.net/note/delete/120690/non-english
Del: in docs -- https://master.php.net/note/delete/120690/in+docs
Del: other reasons-- https://master.php.net/note/delete/120690
Reject -- https://master.php.net/note/reject/120690
Search -- https://master.php.net/manage/user-notes.php