I have the following codes:
$n = $totalMins/60;
$whole = floor($n);
$fraction = $n - $whole;
$totalHrs += $whole;
$totalMins = round($fraction*60);
$total = "$totalHrs hours and $totalMins mins";
$totalDeci = round($fraction, 2);
$totalDeci += $totalHrs;
$totalDeci = number_format($totalDeci, 2);
I want the $totalDeci to be called on another php page that I have. Is there a way for me to call it? I'm not really familiar with php.