- print_r: documentation ( source)
- explode: documentation ( source)
<?php
$g = explode('.',(string)((int)'21668' / 365.25));
print_r($g);
$anni = intval($g[0]);
$mesi = intval((float)("0.".$g[1]) * 12);
echo $anni."<br/>";
echo $mesi."<br/>";