title: PHP - Parse mathematical equations inside strings
body: <p>I'm struggling to find the best way to do this. Basically I am provided strings that are like this with the task of printing out the string with the math parsed.</p>
  
  <p>Jack has a [0.8*100]% chance of passing the test. Katie has a [(0.25 + 0.1)*100]% chance.</p>
  
  <p>The mathematical equations are always encapsulated by square brackets. Why I'm dealing with strings like this is a long story, but I'd really appreciate the help!</p>