title: checking memory_limit in PHP
body: <p>I'm need to check if <code>memory_limit</code> is at least <code>64M</code> in my script installer. This is just part of PHP code that should work, but probably due to this "M" it's not reading properly the value. How to fix this ?</p>
  
  <pre><code>  //memory_limit
      echo "&lt;phpmem&gt;";
      if(key_exists('PHP Core', $phpinfo))
      {
          if(key_exists('memory_limit', $phpinfo['PHP Core']))
          {
              $t=explode(".", $phpinfo['PHP Core']['memory_limit']);
              if($t[0]&gt;=64)
                  $ok=1;
              else
                  $ok=0;
              echo "&lt;val&gt;{$phpinfo['PHP Core']['memory_limit']}&lt;/val&gt;&lt;ok&gt;$ok&lt;/ok&gt;";
          }
          else
             echo "&lt;val&gt;&lt;/val&gt;&lt;ok&gt;0&lt;/ok&gt;";
      }
      else
          echo "&lt;val&gt;&lt;/val&gt;&lt;ok&gt;0&lt;/ok&gt;";
      echo "&lt;/phpmem&gt;\n"; 
  </code></pre>