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

时光毁灭记忆、已成空白 提交于 2019-12-11 16:53:31

问题


I need to validate pan number and bank account 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.


回答1:


Pan number validation regular expression

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


来源:https://stackoverflow.com/questions/4969572/how-to-validate-pan-no-and-bank-account-number-using-php

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!