开发者

How can i Match arabic letters using regexp in php

How can i Match arabic letters with regexp in php

My Code

$name = $_GET("name");

if (arabic letters only and spaces) // using regex开发者_C百科p


I think your answer is here: Check the language of string based on glyphs in PHP

if(preg_match("/\p{Arabic}/u", $name])) {
echo 'valid';
} 
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜