Answers for "get percentage value in php from string"

PHP
0

calculate percentage of amount in php

//ENTER  PERCENT AND AMOUNT 
//IT WILL RETURN OUTPUT
//INTAKE: 2% OF 10
//OUTPUT : 0.2
function calc_percent($percent, $amt) {
  return  $output = ($per/100 * $amt);
}
Posted by: Guest on February-17-2022

Code answers related to "get percentage value in php from string"

Browse Popular Code Answers by Language