Q. How can you validate that an input contains only letters in PHP?

आप यह कैसे सत्यापित कर सकते हैं कि किसी इनपुट में केवल PHP में अक्षर हैं?

A
preg_match("/^[a-zA-Z]+$/", $input)
B
is_string($input)
C
ctype_alpha($input)
D
Both A and C

Explanation

Explanation will be available soon. Please stay tuned.

व्याख्या जल्द ही उपलब्ध होगी। कृपया बने रहें।

Invest in Future Achievers

Your support helps keep Exam Achiever 100% free for students preparing for exams.

Thanks for your support!

Comments

Leave a Comment