I'm trying to format foreign currencies. I discovered that the money_format() function doesn't work on Windows and is deprecated as of PHP 8.0.
I am trying this code below and I have not seen a result of my efforts.
Does this function work on Windows? I also want to know if my viewer is interacting with the web page, and they are on a Windows machine, am I going to need a fall back for this function or will they see the proper result from my effort.
<?php
$fmt = numfmt_create( 'de_DE', NumberFormatter::CURRENCY );
echo numfmt_format_currency($fmt, 1234567.891234567890000, "EUR")."\n";
echo numfmt_format_currency($fmt, 1234567.891234567890000, "RUR")."\n";
Any help is greatly appreciateed.