I'm working on a web for users in the Middle East. I have added a part that users can write their ideas but I want them to be able to type in Arabic alphabet and not English. what should I do?
At first, I tried this way but it didn't work
if(preg_match('%^[A-Za-z]$%',$userpost))
{ echo 'please write your post in arabic';
}else{
echo 'your post is valid';
}