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';
}
精彩评论