简体   繁体   English

如何使用PHP验证PAN No和银行帐号?

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

I need to validate pan number and bank account number fields. 我需要验证银行帐号和银行帐号字段。 How can I do that using php? 我怎么能用PHP做到这一点? I have to implement this validation in civicrm custom form. 我必须以civicrm自定义形式实施此验证。 civicrm has any built in function for these two validations. civicrm具有这两种验证的内置功能。

Pan number validation regular expression 泛数验证正则表达式

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM