PHP money_format to Swiss Currency

Avatar patrickh 4 months, 1 week ago

In my PHP file, I have this code:

setlocale(LC_MONETARY, 'de_CH');

and further down:


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


Please enter an answer

You can mention users to notify them: @username

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] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct