开发者

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

开发者 https://www.devze.com 2023-02-06 05:26 出处:网络
This question already has answers he开发者_开发问答re: Closed 12 years ago. Possible Duplicate: PHP: Check only chars
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

精彩评论

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