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';
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With