title: Mathematical Expressions Solving Algorithm
body: <p>My previous question was put on hold as question was not clear. </p>
  
  <p>Posting it again with specific query</p>
  
  <p>My requirement is to solve any mathematical complex expressions using PHP. For example,</p>
  
  <p>If I have a string "1(1+2)/3 + 4", using BODMAS rule, I have to solve it. But I have to also get all individual steps. </p>
  
  <p>Two sites I have referred are:<br> 
  <a href="http://www.careerbless.com/calculators/ScientificCalculator/" rel="nofollow noreferrer">http://www.careerbless.com/calculators/ScientificCalculator/</a><br> 
  <a href="http://web2.0calc.com/" rel="nofollow noreferrer">http://web2.0calc.com/</a></p>
  
  <p>My first question is , which is the ideal language for these kind of problems. Also, is there any built in solution available so that I don't have to reinvent the wheel</p>
  
  <p>Thanks in advance</p>