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 ?
Who is Participating?
hernst42Connect With a Mentor Commented:

echo number_format($number, 2, '.', ',');
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.

All Courses

From novice to tech pro — start learning today.