PHP Classes

PHP Cuban Personal Identification Number Parser: Parse a Cuban personal identification number

Recommend this page to a friend!
  Info   View files Example   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 18 This week: 1All time: 11,204 This week: 571Up
Version License PHP version Categories
cuban-pin-parser 1.0Freeware5PHP 5, Geography, Parsers
Description 

Author

This package is specific mainly for applications used in Cuba Cuba .

This class can parse a Cuban personal identification number.

It can take a Cuban personal identification number string and parses it to extract its components.

The class returns an array that contains the birth day, the gender and the age of the person that uses this number.

In Spanish:

Pasando como parametro el numero personal de identificacion utilizado en Cuba se obtiene un array con los valores: sexo, dia, mes y aņo de nacimiento y edad.

Picture of Dannel
  Performance   Level  
Name: Dannel <contact>
Classes: 9 packages by
Country: Cuba Cuba
Age: 30
All time rank: 30438 in Cuba Cuba
Week rank: 420 Up1 in Cuba Cuba Up
Innovation award
Innovation award
Nominee: 5x

Example

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">

<head>
  <title>Hello!</title>
</head>

<body>
<pre>
<?php
include 'CIman.php';
$obj=new cinspector;
$data=$obj->ci('9416026621');
?>
<h1>Parsing a cuban identification number</h1>
 <h3>Example: 9416026621</h3>
<?php echo 'Date Of Birth: '.$data['year'].'/'.$data['month'].'/'.$data['day']; ?>

<?php echo 'Age: '.$data['age']; ?>

<?php echo 'Sex: '.$data['sex']; ?>

</body>

</html>


  Files folder image Files  
File Role Description
Plain text file CIman.php Class Main class
Accessible without login Plain text file Example.php Example Example script

 Version Control Unique User Downloads Download Rankings  
 0%
Total:18
This week:1
All time:11,204
This week:571Up