title: How can i allow only arabic characters in input text field?
body: <p>I already searched here and found similar posts related to this post but i did not find a solution yet .</p>
  
  <p>i tried this :</p>
  
  <pre><code>$text = "الحمد لله رب العالمين hello";
  
  echo $is_arabic = preg_match('/\p{Arabic}/u', $text);
  </code></pre>
  
  <p>I add the unicode flag but if i add any English characters it is returning true ! any fix for this ?</p>
  
  <p>Any idea folks ? </p>
  
  <p>Thanks in advance</p>