Location: PHPKode > projects > PHP Point Of Sale > application/helpers/currency_helper.php
<?php
function to_currency($number)
{
	if($number >= 0)
	{
		return '$'.number_format($number, 2, '.', '');
    }
    else
    {
    	return '-$'.number_format(abs($number), 2, '.', '');
    }
}


function to_currency_no_money($number)
{
	return number_format($number, 2, '.', '');
}
?>
Return current item: PHP Point Of Sale