<?php
date_default_timezone_set("Europe/Bucharest");
require "class.cnp.php";
$a = new CNP("your cnp");
/*
* Check if there are any error
* Take a look inside class from what errors can be generated
*/
if ( ! $a->error) {
/*
* First method means to get info about the possessor of CNP in one array
*/
echo "<pre>";
print_r($a->fetchAllData());
echo "</pre>";
/*
* or second method, get specific information about the possessor of CNP
*
* CNP::getGenre()
* CNP::getYear()
* CNP::getDay()
* CNP::getMonth()
* CNP::getResidentInfo()
* CNP::getStrangerInfo()
*/
}
else
echo $a->error;
?>
|