How can i Match arabic letters with regexp in php
My Code
$name = $_GET(\"name\"); if (arabic letters only and spaces) // using regexp
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'; }