title: Evaluating multiple expressions to determine the range of a numeric variable in php
body: <p>Sorry if the title is confusing.</p>
  
  <p>I have several string expressions in an array like these:</p>
  
  <pre><code>var1 &lt;= 6  &amp;&amp; var1 &gt; 3
  var1 &gt; 2  
  var1 &gt; 4.5
  
  var2 &lt; 22.5  
  var2 &gt;= 14.25  
  var2 &lt; 16
  </code></pre>
  
  <p>How can I go about evaluating all of the expressions to determine:</p>
  
  <pre><code>var1 min
  var1 max
  var2 min
  var2 max
  </code></pre>
  
  <p>I understand that with the expressions that are not "or equal to" I won't be able to get an exact value. That is alright.</p>