title: Will an If Statement Stop Checking if the first OR condition is met in PHP?
body: <p>I want to try and make my code as efficient as possible and from what ive read</p>
  
  <pre><code>if($process == true)
  </code></pre>
  
  <p>Will process faster than something that calls a function. I.e</p>
  
  <pre><code>if(count($total) == 100) 
  </code></pre>
  
  <p>So if i had an OR inside my if and the first condition was a simple boolean check and it turned out to be true would the second part of the condition still be checked anyway? </p>
  
  <p>For example</p>
  
  <pre><code>$process = true;
  if($process == true || count($total) == 100)
  </code></pre>
  
  <p>Would the count function still be called even though process is true and that is enough the make the condition pass. </p>