Log 4492
25/12/2024 2024-12-25 9:50$birth_date = #תאריך לידה#;
if ($birth_date !== ”) {
$today_date = date(‘d/m/Y’);
$birth_timestamp = strtotime($birth_date);
$today_timestamp = strtotime($today_date);
$year_difference = floor(($today_timestamp – $birth_timestamp) / (365.25 * 24 * 60 * 60));
return $year_difference;
} else {
return ”;
}