title: can php return a boolean? => return $aantal == 0;
body: <p>can php return a boolean like this:</p>
  
  <pre><code>return $aantal == 0;
  </code></pre>
  
  <p>like in java you can </p>
  
  <pre><code>public boolean test(int i)
  {
  return i==0;
  }
  </code></pre>
  
  <p>or do you Have to use a if contruction?
  because if i do this.</p>
  
  <pre><code>$foutLoos = checkFoutloos($aantal);
  
  function checkFoutloos($aantal)
  {
      return $aantal == 0;
  }
  
  echo "foutLoos = $foutLoos"; 
  </code></pre>
  
  <p>it echo's </p>
  
  <pre><code>foutLoos = 
  </code></pre>
  
  <p>so not true or false</p>
  
  <p>thanks
  matthy</p>