So I need to get value false or true if string contains not only letters of all european and east alphabets and ” “(space) and “-” minus. How to do such thing with some $a string?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Here’s what regular-expressions.info has to say on the subject of Unicode and PHP:
Regular expressions on PHP
Unicode support
Therefore, if you want to see if a string consists only of letters in Cyrillic in PHP, you can try to match it against this regular expression: