Igor Simic
7 years ago

How to validate any kind of letter from any language using PHP


To validate input text coming from any language using PHP we have to use regex expression like this:

preg_match("/^[\p{L}0-9]{1,20}$/u", $query)