Log 4772
06/03/2025 2025-03-06 13:31$total_time = 0;
$str = ‘#סה\”כ#’;
$pattern = ‘/(d+)sשעותs(d+)sדקות/’;
preg_match($pattern, $str, $matches);
if (!empty($matches)) {
$hours = (int) $matches[1];
$minutes = (int) $matches[2];
$total_time += ($hours * 60) + $minutes;
}
return intval($total_time);