Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要验证泛号和银行帐号字段。我怎么能用php做到这一点?我必须以 civicrm 自定义表单实现此验证。civicrm 具有用于这两个验证的任何内置函数。
泛号验证正则表达式
if (!preg_match("/^([a-zA-Z]){5}([0-9]){4}([a-zA-Z]){1}?$/", $pannumber)) { echo "Invalid pan number"; }