The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
|
#1
|
||||
|
||||
[SOLVED] Arabic encoding with preg_match_all
HELLO ,
i try discovery of banned words when users posted new post , but i have a problem only Only the discovery of English words, I think that the problem is in the Arabic language encoding , I tried to solve the problem by PHP Code:
Code:
$wordss = "هالو|مرحبا|google.com"; $bwords = explode("|", $wordss); //$string = $vbulletin->GPC['message']; $string = 'BLA BLA مرحبا BLA BLA google.com BLA BLA BLA '; $matchFound = preg_match_all( "/\b(" . implode($bwords,"|") . ")\b/i", $string, $matches ); $words = array_unique($matches[0]); print_r($words); output : google.com but Must be : google.com,مرحبا |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|