The first example of this article for everyone to share the PHP according to the identity card number, automatically obtain the corresponding constellation function, for your reference, the specific content is as follows
Second instance: Use PHP to extract birthdays from your ID, including 15-and 18-bit IDs:
function Getidcardinfo ($IDCard, $format =1) {$result [' Error ']=0;//0: Unknown error, 1: Ide
7. Unit III Task Four training: Method SetID can set a value for a class's properties: ID (ID number), when given a value of length of 18 o'clock, assigned to the ID, the duty length is not 18 o'clock, throw illegalargumentexception exception. To capture and handle exceptions in the main method, write programs to achie
[Ctrl + A All SELECT Note: If the need to introduce external JS need to refresh to perform]
The more straightforward test code is:
Alert (test ("ID number"));
After testing, the above JS verification is too strong, the input of the correct ID card, a random change is an error! Very practical, in the future everyone will be convenient to understand the user inpu
Use PHP to get a series of clues from your ID number (constellation, Zodiac, birthday, etc.), PHP ID number
The first example of this article for everyone to share the PHP according to the identity card number, automatically obtain the corresponding constellation function,
ID card number generation, verification code calculation, ID card number generation Verification Code
The second generation ID card number consists of 18 digits: 6-digit location code + 8-digit Date of Birth + 3-digit sequence cod
ID card number verification, ID card number verification
Previously, I used regular expressions to verify the ID card number, but sometimes the wrong ID card
IOS returns gender from ID card number, ios ID card number gender
This blog post from: http://www.cnblogs.com/yang-guang-girl/p/5683454.html
-(Void) viewDidLoad {[super viewDidLoad]; // Do any additional setup after loading the view. NSString * sex = [self sexStrFromIdentityCard: @ "139876456767892345"]; NSLog (@ "-- s
[Code note] the ID card number returns gender, and the ID card number returns gender
I. Code.
-(Void) viewDidLoad {[super viewDidLoad]; // Do any additional setup after loading the view. NSString * sex = [self sexStrFromIdentityCard: @ "139876456767892345"]; NSLog (@ "-- sex -- % @", sex );} // gender returned by the
[Code Note] upload an ID card number to return a birthday string and an ID card number string
Code:
-(Void) viewDidLoad {[super viewDidLoad]; // Do any additional setup after loading the view. NSString * birthDay = [self birthdayStrFromIdentityCard: @ "134825194401014241"]; NSLog (@ "-- birthDay-% @", birthDay );} // p
Php ID number check class instance, php ID number instance
This example describes the php ID card number check class. Share it with you for your reference. The details are as follows:
I hope this article will help you with php
/*
JS itself does not have the trim () function to cancel the blank characters in the string
Custom function: replace blank characters with regular expressions
*/
Function trim (s) {return S. Replace (/^ \ s + | \ s + $/g ,"");};
// Verify the ID card number and obtain the Date of birthFunction getbirthdatbyidno (iidno ){VaR tmpstr = "";VaR iddate = "";VaR tmpint = 0;VaR strreturn = "";
Iidno = trim (
The JS Code randomly generates the name, mobile phone number, ID card number, bank card number, and js bank card number.
During development and testing, you often need to enter the name, mobile phone number,
Http://www.cnblogs.com/wuhuisheng/archive/2011/03/23/1992652.html
The main code for phone number verification is as follows:
Public bool istelephone (string str_telephone)
{
Return System. Text. regularexpressions. RegEx. ismatch (str_telephone, @ "^ (\ D {3, 4 }-)? \ D {6, 8} $ ");
}
The main code used to verify the mobile phone number is as follows:
Public bool ishandset (string str_handset)
{
Return Sys
under Windows, Linux installation you can refer to this blog Linux installation TESSERACT-OCRWindows is relatively simple, download the program installation is good, which requires language packs can be selected in the installation options to download the Chinese Language pack, the default is only English. The version I installed is tesseract-ocr3.01-1TesseractBecause wall reason, this URL cannot open directly, you understand, so use thunder download it. Copy link address to Thunderbolt new tas
PHP Extract the birthday date in the ID number and verify whether it is an adult function, ID number adult
PHP extracts the birthday date from the ID number and determines whether a function is adult. Can be determined at the sam
Use php to get a series of clues (constellation, Zodiac, birthday, etc.) from the ID card number, php ID card number
The first example of this article is to share with you that PHP automatically obtains the corresponding constellation functions based on the ID card
PHP ID Number Check class instance, PHP ID number instance
This article describes the PHP ID number check class. Share to everyone for your reference. Specific as follows:
I hope this article is helpful to everyone's PHP program
Php regular expression to determine whether it is a valid ID card number, php to determine the ID card number
This example describes how to use php regular expressions to determine whether a regular ID card number is valid. We wil
Development testing, often need to fill in the name, mobile phone number, ID card number, bank card number, both to meet the format requirements, and can not repeat. People will search the internet for all kinds of generators. Can you write a simple generator of your own? The following is a randomly generated name, mob
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.