Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

percentage in php

<?php
// How much is the x percentage of given value

$percentage = 10;
$totalValue = 500;

// 10% of 500
echo $newValue = ($percentage*$totalValue)/100;
 
PREVIOUS NEXT
Tagged: #percentage #php
ADD COMMENT
Topic
Name
5+1 =