title: nested substr php
body: <p>Hell all,</p>
  
  <p>I'm trying to make my code cleaner, can you guys please le tme know if the following actually works. From my test, I can't seem to tell becaues it goes off and on with the matches. Please help and thank you in advance.</p>
  
  <pre><code>$minar=array('1','2','9','0');
  if ($phpmins&gt;"2" &amp;&amp; in_array(substr($phpmins, -1),$minar) &amp;&amp; $phpmins&lt;$newmax)
  </code></pre>
  
  <p>The part I'm worrying about is: <code>&amp;&amp; in_array(substr($phpmins, -1),$minar)</code></p>
  
  <p>Can you nest the substr in the in_array?</p>