- date_diff: documentation ( source)
- date_create: documentation ( source)
- date_format: documentation ( source)
<?php
$sql_dob = date_create('1969-03-09');
$today = date_create();
echo date_format($today,'Y'). "<br>\n";
$age = date_diff($today,$sql_dob);
echo $age->format('%y');
?>