Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

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

Contents

Class file image Download
<?php

require('fngssn.class.php');

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

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

echo 
'<br /><br />';

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

?>