title: Elegant Way to Increase Price by Percentage with PHP
body: <p>When I need to add a percentage to a price in order to increase it by a certain percentage I have this formula <code>$price * (1 + $percent / 100)</code> which is somewhat limiting.</p>
  
  <p>For example if I wanted to increase the price by <code>200%</code> or <code>300%</code> I'd need to create a complex code to detect if its a 3 decimal number. And then extract the first number and replace the <code>1</code> like this <code>(2 + $percent / 100)</code>.</p>
  
  <p>Is there a more elegant way to increase a price by a certain percentage?</p>