PHP: Percentage of a number
<p>I could never think it would be even challenging but is there any function to calculate a percentage of a number or do I have to write a custom function?</p>

<p>Example:<br/>
$result=percent(25,100); //doing the 100%25 operation<br/>
$result = 4</p>
