title: Converting to Boolean Value in PHP
body: <blockquote>
    <p><strong>Possible Duplicate:</strong><br>
    <a href="https://stackoverflow.com/questions/2795177/how-to-convert-boolean-to-string">How to Convert Boolean to String</a>  </p>
  </blockquote>
  
  
  
  <p>I think that asking this might be kind of silly but I'm still wondering whether there is built-in way to return false or true as they way they look instead of 0 or 1, well actually this code even doesn't write 0 but 1:</p>
  
  <pre><code>&lt;?php
  $array = array(1,2,3);
  echo (bool) $array;
  ?&gt;
  </code></pre>
  
  <p>So I want this code to write "true" or "false" instead of numeric values. I know I can build a function but my curiosity likes to learn a built-in way if there is any.</p>