PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Jacob Allred  >  PHP Social Security Number (SSN) Generator Class  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example usage
Class: PHP Social Security Number (SSN) Generator Class
Generate and validate US social security numbers
Author: By
Last change:
Date: 14 years ago
Size: 254 bytes


Class file image Download


// Instantiate the class
$fngssn = new fngssn();

// Generate a SSN for California
echo $fngssn->generateSSN('CA');

'<br /><br />';

// Validate a SSN
echo $fngssn->validateSSN('421-61-1998');


For more information send a message to info at phpclasses dot org.