Answers for "how to add a percentage in php standard function"

PHP
0

percentage in php

$percentage = 10; //persentage
$totalWidth = 1000; //Summa

$new_width = ($percentage / 100) * $totalWidth;
Posted by: Guest on January-05-2022

Code answers related to "how to add a percentage in php standard function"

Browse Popular Code Answers by Language