print value from function on class
<p>i have this function on class called Bills that return three value when calling it.</p>

<pre><code>function GetCashierDetail ($UserID){
        $GetCashierID = "SELECT cashiers_CashierID,cashiers_Total,cashiers_Last_Total 
        FROM `cashiers` 
        WHERE `cashiers_CashierCloseDate` is null and `cashiers_Status`='0' 
        and `cashiers_Delete` = '0' and `cashiers_User` = '".$UserID."'";
        $objQueryCashierID = mysql_query($GetCashierID) or die ("Error Query [".$strSQL."]");
        $GetCashierIDResult = mysql_fetch_array($objQueryCashierID);
        $BillsCashierID = $GetCashierIDResult['cashiers_CashierID'];
        $CashierTotal=$GetCashierIDResult['cashiers_Total']; 
        $CashierLastTotal=$GetCashierIDResult['cashiers_Last_Total']; 
        $num=mysql_affected_rows();
        // Return Data
        return $cashier_data = array('cashierId'=&gt;$BillsCashierID ,
                          'CashierTotal'=&gt;$CashierTotal ,
                          'CashierLastTotal'=&gt;$CashierLastTotal );                      

}
</code></pre>

<p>now when call this function </p>

<pre><code>$BillDraftSubmit = new Bills;
$BillDraftSubmit-&gt;GetCashierDetail(71);
</code></pre>

<p>i need to print the $cashier_data on variable like this</p>

<p>$ID = $BillsCashierID
to using it on other way.</p>

<p>how can i read the value from this function from class</p>
