Function & amp; nbsp; is_idcard (& amp; nbsp; $ id & amp; nbsp;) {& amp; nbsp; & amp; nbsp; $ id & amp; nbsp; strtoupper ($ id); & amp; nbsp; $ regx & amp; nbsp; & amp; quot; (^ \ d {15} $) | (^ \ d {17} ([0-9] | X) $) & amp; quot function is_idcard ($ id) {$ id = strtoupper ($ id ); $ regx = "/(^ \ d {15} $) | (^ \ d {17} ([0-9] | X) $ )/"; $ arr_split = array (); if (! Preg_match ($ regx, $ id) {return FALSE;
1. function for verifying the validity of the ID card in PHP
Brief introduction: PHP function code sharing that verifies that the ID card is valid
6. php function _ php instance for verifying the correctness of ID card numbers
Introduction: This article mainly shares two functions for verifying the correct ID card number in php. if you are interested, refer to them.
7. function for verifying the ID card number in PHP
Introduction: PHP functions used to verify the ID card number
8. verify that the ID card is a valid PHP function
Brief introduction: PHP functions used to verify the validity of the ID card
9. PHP verification ID card favorites _ PHP Tutorial
Overview: PHP verification ID card favorites. Personal identity card functions are very useful, especially in the online survey, it is useful to verify the ID card in personal information. <? Php //
10. verify the last six php_PHP tutorials
Brief introduction: verify the last six php IDs. The last six digits of the ID card are verified. in the form submitted by php, I have one of the last six digits of the ID card. how can I write this? The last six digits of the ID card are in the file.
[Related Q & A recommendations ]:
Javascript-find an input form to promptly verify the ID card. mobile and Chinese verification is supported !!!
Cookie-what is the simple and secure source code for php login authentication?
How does java-shiro implement account-free password, login and authorization by verifying the identity code?
Java-how does the client software save user login information to interact with the server?
Php-identity verification through session_id
The above is a detailed recommendation for 10 articles on identity verification. For more information, see other related articles in the first PHP community!