1 2 3 4 5 6 7
<?php function porcentagem_nx ( $parcial, $total ) { return ( $parcial * 100 ) / $total; } echo porcentagem_nx(20, 100);
1
20