I have two variables:
$percent = '3.5'; //this is the percentage
$order = 400;
//so how would i get $percent of $order?
Now in PHP how would I find out what 3.5% of 400 is (I know its 14) – but would like to know how to calculate it directly in PHP using those two variables above.
Appreciate your response.
“Percent” just means “per 100” or “over 100” or “/ 100”