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: 15 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');

?>