如何使用货币方法将我的数字格式化为GBP(£)?
以下代码返回$ 110.00,我希望它返回£110.00
<div id="subtotal"> <?php echo $number->currency($invoice['Invoice']['subTotal']); ?></div>
答案 0 :(得分:2)
echo $number->currency($invoice['Invoice']['subTotal'], 'GBP');
查看api文档:http://api12.cakephp.org/class/number-helper#method-NumberHelpercurrency