Numberology: The Personality Number

Name:
Birthdate: 

[insert_php]

$name = $_POST[‘person’];
$birthdate = $_POST[‘birthdate’];
$arr_date = str_split($birthdate,1);
$a1 = plus($arr_date[8],$arr_date[9]);
$a2 = plus($arr_date[5],$arr_date[6]);
$a3 = plus($arr_date[0],$arr_date[1]);
$a4 = plus($arr_date[2],$arr_date[3]);
$b1 = plus($a1,$a2);
$b2 = plus($a3,$a4);
$number = plus($b1,$b2);
echo “Your personality number is “.$number;
echo “
Meaning of No.”.$number.”“;

function plus($x,$y){
$z = $x+$y;
if($z>9){
$array_z = str_split($z,1);
$z = $array_z[0]+$array_z[1];
}
return $z;
}
[/insert_php]

personality

This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.

Leave a Reply

Your email address will not be published. Required fields are marked *