Community

PHP money_format to Swiss Currency

php
Avatar patrickh 3 days, 17 hours ago

In my PHP file, I have this code:

setlocale(LC_MONETARY, 'de_CH');

and further down:

money_format('%.2n')

My local site adjusts correctly according to my "setLocal"-setting, but on the remote site on my linode, I keep getting the $-sign instead of € or Fr. (for Switzerland), no matter what.

How do I get the correct currency to show?

0 Replies

Reply

Please enter an answer
Tip:

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct