advanced code snippet search
andreiabohner on 12/27/09
calculate percent
12/27/09 09:48pm
2 people have marked this snippet as a favorite
BrianCoyDesignjoethermal
function percent($val1='', $val2=''){ if(!empty($val1) && !empty($val2)){ $res = round(($val1/$val2)*100,2); return $res; } return false;}
Report this snippet Tweet
Comment:
You need to login to post a comment.