I need to allow Arabic usernames on my website which is already using ctype_alnum to validate the username field. When I try to use Arabic usernames, the validation error message is returned. ctype_alnum does not recognize arabic characters as letters and numbers. How can i work around this ?
I need to allow Arabic usernames on my website which is already using ctype_alnum
Share
You can find all Arabic Characters by using this Regex:
If the matched length equals the username length it is an arabic username.