开发者

can some one tell me how valid letter only by php regex [duplicate]

This question already has answers he开发者_开发问答re: Closed 12 years ago.

Possible Duplicate:

PHP: Check only chars

i want insert only character from A to Z how i can make it by regular expression


if (ereg('[^A-Za-z]', $text)) {
  echo "More then letters";
}

else {
  echo "only letters";    
}

I hope this helps

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜