• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1286
  • Last Modified:

how do i convert a number to euro currency format?

for example, $number = 1230.0 and i want to convert it to 1,230.00 ?
0
markmchugh
Asked:
markmchugh
1 Solution
 
hernst42Commented:
See http://www.php.net/number_format

echo number_format($number, 2, '.', ',');
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now