Hello everybody,
Please help me with a function that validate an input string to allow: 1) UTF-8 characters (ex: şţăîâ) ; 2) space ; 3) minus symbol(-)
String cannot start or end with space or minus.
Thanks!
Hello everybody,
Please help me with a function that validate an input string to allow: 1) UTF-8 characters (ex: şţăîâ) ; 2) space ; 3) minus symbol(-)
String cannot start or end with space or minus.
Thanks!
You will need to use multibyte string functions
http://au.php.net/manual/en/function.mb-internal-encoding.php
http://stackoverflow.com/questions/1282986/utf-8-validation-in-php-without-using-preg-match