title: To have boolean type in Postgres for PHP
body: <p>I can't believe that the <a href="http://bugs.php.net/bug.php?id=29213&amp;edit=1" rel="noreferrer">following statement</a> seems to be still true</p>
  
  <pre><code>So, I switched to integers and 0 or 1 works fine, but it is
  stupid, that the database system has boolean variables of a smaller
  size, but I should use integers for boolean values!
  </code></pre>
  
  <p><strong>How do you use boolean datatype with Postgres / PHP?</strong></p>
  
  <p>In other words,</p>
  
  <p><strong>Is the only way to use 1 for true and 0 for false in getting the kind of the boolean datatype?</strong></p>