Re: Validation class method (ssn)
| From: | Tim Gallagher | Date: | Thu, 06 Jun 2002 21:18:50 +0000 |
| Subject: | Re: Validation class method (ssn) | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-6763@lists.php.net to get a copy of this message | ||
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:we're da mans (er... men)! ;-DHere 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 ;)
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?
-timmyg