dyrer Posted November 23, 2009 Share Posted November 23, 2009 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 More sharing options...
mikesta707 Posted November 23, 2009 Share Posted November 23, 2009 the same result as what? I don't quite understand your question can you explain a little better? Link to comment https://forums.phpfreaks.com/topic/182701-localizing/#findComment-964328 Share on other sites More sharing options...
dyrer Posted November 23, 2009 Author Share Posted November 23, 2009 For italy the format is 4523.23 For US is 4,523.23 Link to comment https://forums.phpfreaks.com/topic/182701-localizing/#findComment-964344 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.