This should work:
preg_match("(^[\x{0600}-\x{06FF}]*$)", 'فارسی');
And also you can use all these forms for the Persian language:
Persian alphabet
فارسی
/^([\x{0600}-\x{06EF}])+$/
Persian numbers
1234567890
/^([\x{06F0}-\x{06F9}])+$/
Persian plain text with space and half-space
اگر زمان و مکان در اختیار ما بود, 10 سال پیش از طوفان نوح عاشقت میشدم
/^([\x{0600}-\x{06FF}| |\x{200C}])+$/
source
share