note 120690 rejected from function.mb-ereg by tularis

From: 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?

« previous php.notes (#208778) next »