How do I use the currency method to format my numbers into GBP (£) ?
The following code in returning $110.00, I want it to return £110.00 please
<div id="subtotal"> <?php echo $number->currency($invoice['Invoice']['subTotal']); ?></div>
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
echo $number->currency($invoice['Invoice']['subTotal'], 'GBP');Check out the api docs: http://api12.cakephp.org/class/number-helper#method-NumberHelpercurrency