Re: Validation class method (ssn)

From: Date: Thu, 06 Jun 2002 21:31:05 +0000
Subject: Re: Validation class method (ssn)
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-6765@lists.php.net to get a copy of this message
On Thu, 6 Jun 2002, Tim Gallagher wrote: > At 04:07 PM 6/6/2002 -0500, you wrote: > >On Thu, 6 Jun 2002, Tim Gallagher wrote: > > > > > At 02:48 PM 6/6/2002 -0500, Brent Cook wrote: > > > > > > >Here is a script to convert the list of high SSN numbers from the SSA... > > > >working on the validator now. ... > > > > > > Here is a function to determine the ssnGroup number from a given group > > > > > > >And here's the code to do the full validation ;) > > we're da mans (er... men)! > ;-D Yes, we are! > > function ssn ($area, $group, $serial, &$high_ssn_list) > > { > > // perform trivial checks > > // no field should contain all zeros > > // area should never be above 770 > > 770 is an assumption. > if the social security office starts issuing numbers with 780 for whatever > reason, they will post it to the website, and it will show up in > $high_ssn_list, perhaps a quick in_array(array_keys($high_ssn_list)) check > might be a good idea? It definitely says that > 770 is invalid here: http://www.cpsr.org/cpsr/privacy/ssn/ssn.structure.html Maybe that's when the aliens invade and replace us all with clones. Or social security will be a thing of the past. - Brent

« previous php.pear.dev (#6765) next »