Php Code for Heart Rate

This php programming code is used to find the heart rate. You can select the whole php code by clicking the select option and can use it. When you click text, the code will be changed to text format. This php program code will be opened in a new pop up window once you click pop-up from the right corner. You can just copy, paste this php code and use it to find the heart rate.

<?php 

$rate=12;
$age=50;
$maxrate = 220;
$heartrate = $maxrate - $age;
$val = $heartrate - $rate;

$res1 = ($val*0.4);
$res2 = ($val*0.6);

$targetmin = $res1+$rate;
$targetmax = $res2+$rate;

echo sprintf("\nHeart beat low rate: ".$targetmin." - ".$targetmax);

        $res1 = ($val*0.6);
        $res2 = ($val*0.7);

        $targetmin = $res1+$rate;
        $targetmax = $res2+$rate;
echo sprintf("\nHeart beat medium rate: ".$targetmin." - ".$targetmax);

        $res1 = ($val*0.7);
        $res2 = ($val*0.85);

        $targetmin = $res1+$rate;
        $targetmax = $res2+$rate;
echo sprintf("\nHeart beat high rate: ".$targetmin." - ".$targetmax);

?>
Other Programming Codes
Online Calculator : Heart Rate
Click on the select code link to copy and paste this free php program code for heart rate.

english Calculators and Converters


Sitemap