Currency, number format

I have problem, on localhost show price is:

CZK 1,675

On server show price is:

CZK1,675.00 

Without   and in addition, decimal numbers.
How do I set a price display with a space ( )? And without decimal places?

Code:

$price = Number::currency(1675, 'CZK', [
    'places' => 0,
]);

Where is problem?

What version of libicu is each server running?

On localhost:

ICU version 66.1

On server:

ICU version 50.2

That’s likely the source of the difference; the format strings it uses for different locales has evolved over time. Ideally, you’d be able to update the server to something newer, but that’s often a struggle.

1 Like