Paul, You have probably been asked this before... To introduce a function where would I put it? include/citrus_base.php ?
I need to change the currency format for Japanese Yen. Which doesn't use decimals. So I thought that a function that formats depending on a variable in include/config.inc.php would be more flexible than changing all the sprintf each type. $billedamount = sprintf("%.2f",$myresult['d_billed_amount']); ==> $billedamount = sprintf("%d",$myresult['d_billed_amount']); Of course instead I would need to change all those to the function name but only once. One installation uses US dollars and the other Japanese Yen. $billedamount = currency_format($myresult['d_billed_amount']); ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Citrusdb-users mailing list Citrusdb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/citrusdb-users