Version: 1.0
Type: Function
Category: Math Functions
License: GNU General Public License
Description: Takes two paramaters ($int1, $int2) and uses them to calculate the percentage.
<?php
Function percentage($int1, $int2) {
$per = $int1 / $int2;
$res = $per * 100;
return $res;
}
?>