문제

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.

도움이 되었습니까?

해결책

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 ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top