I have a variable that dynamically receives from the database, a floating number that is the percentage to be taken out of a given value. How do I get this percentage out of a value?
For example:
$total = 4000;
$pctm = 30.00;
$valor_descontado = $total-$pctm.'%';
But that does not work.