Jump to content

Localizing


dyrer

Recommended Posts

Why this code has the same result on my machine (localhost, WAMP)

<?php
setlocale(LC_ALL, 'it_IT');
$locale = localeconv();
printf("(it_IT) Total hours spent commuting %s <br />",
number_format(4532.23, 2, $locale['decimal_point'],
$locale['thousands_sep']));
setlocale(LC_ALL, 'en_US');
$locale = localeconv();
printf("(en_US) Total hours spent commuting %s",
number_format(4532.23, 2, $locale['decimal_point'],
$locale['thousands_sep']));
?>

Link to comment
https://forums.phpfreaks.com/topic/182701-localizing/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.