PHP Classes

File: Example.php

Recommend this page to a friend!
  Classes of Dannel   PHP Cuban Personal Identification Number Parser   Example.php   Download  
File: Example.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Cuban Personal Identification Number Parser
Parse a Cuban personal identification number
Author: By
Last change:
Date: 4 years ago
Size: 575 bytes
 

Contents

Class file image Download
<!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>