setlocale(LC_MONETARY, 'en_US'); $price = 10.99; echo money_format('%.2n', $price);
setlocale(LC_TIME, 'fr_FR'); $date = strtotime('2022-01-01'); echo strftime('%d %B %Y', $date);The "Locale" library is included with the PHP core, so there is no need to install any additional packages.