php validation function for name that allow UTF-8 characters plus - (minus) and space

Posted by REALSOFO on Stack Overflow See other posts from Stack Overflow or by REALSOFO
Published on 2010-05-18T15:46:42Z Indexed on 2010/05/18 15:50 UTC
Read the original article Hit count: 216

Filed under:
|
|
|

Hello everybody,

Please help me with a function that validate an input string to allow: 1) UTF-8 characters (ex: staîâ) ; 2) space ; 3) minus symbol(-)

String cannot start or end with space or minus.

Thanks!

© Stack Overflow or respective owner

Related posts about function

Related posts about validation