开发者

How to validate PAN No and Bank account number using php?

I need to validate pan number and bank a开发者_开发问答ccount number fields. How can I do that using php? I have to implement this validation in civicrm custom form. civicrm has any built in function for these two validations.


Pan number validation regular expression

if (!preg_match("/^([a-zA-Z]){5}([0-9]){4}([a-zA-Z]){1}?$/", $pannumber)) {
  echo "Invalid pan number";
}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜