php bool echo output
<p>I have a strange problem.</p>

<p>If have function that does this return the value,</p>

<pre><code>public function isVipCustomer($customer_id){
        $cus_vip_id=FALSE;
        $sql="SELECT customerid FROM customers WHERE is_vip='1' 
                AND customerid='".$customer_id."' LIMIT 0,1 ";  
        $result= $this-&gt;db-&gt;query($sql);

        while($row=mysqli_fetch_assoc($result)){
            $cus_vip_id=(int)$row['customerid'];    
        }

        if($cus_vip_id!=0)
            return TRUE;
        else
            return FALSE;

    }
</code></pre>

<p>when I call </p>

<pre><code>$customer_id=13;
echo $collection-&gt;isVipCustomer($customer_id);
</code></pre>

<p>when its true it outputs 1 but when its false its empty, expecting a output of 0 </p>

<p>why?</p>
