Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php calculate percentage

$percentage = 50;
$totalWidth = 350;

$new_width = ($percentage / 100) * $totalWidth;
 
PREVIOUS NEXT
Tagged: #php #calculate #percentage
ADD COMMENT
Topic
Name
6+2 =