title: How to set multiple conditions in if else statement, php
body: <p>I am trying to set a if statement(s) for a self-processing form that checks if the user entered a positive whole number for quantity. This would be the following conditions:</p>
  
  <p>is_numeric</p>
  
  <p>is_int</p>
  
  <p>and > 0</p>
  
  <p>I've read that I can use || and &amp;&amp; to set multiple conditions in a single if function, however it's not working because when I typed "-1" or "jkgh" as quantity, it still printed the table row. </p>
  
  <p>If statement:</p>
  
  <pre><code>    if (is_numeric($_POST['qty_entered'][0]) || is_int($_POST['qty_entered'][0]) || $_POST['qty_entered'][0] &gt; 0) {
      print "'&lt;tr&gt;&lt;td&gt;' test '&lt;/td&gt;'";
  </code></pre>
  
  <p>Thanks!</p>