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'])); ?> Quote 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? Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/182701-localizing/#findComment-964344 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.