开发者

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

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

UTF-8 validation in PHP without using preg_match()

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜