<pre><?php
    $locales 
= array(
        
'Arabic (Egypt)' => 'ar_EG.UTF-8''American' => 'en_US',
        
'Dutch   '       => 'nl_NL',       'Hebrew  ' => 'iw_IL',
        
'Hebrew (UTF-8)' => 'iw_IL.UTF-8''Japanese' => 'ja_JP.UTF-8',
        
'Norwegian'      => 'no_NO.UTF-8''Turkish ' => 'tr_TR.UTF-8'
    
);

    foreach (
$locales as $country => $locale) {
        
setlocale(LC_NUMERIC$locale);
        
$ldata localeconv();
        echo 
"<b>$country</b>\t",
             
number_format("31415.92654"2$ldata['decimal_point'],
             
$ldata['thousands_sep']), "\n";
    }
?></pre>
Output:
Arabic (Egypt)	31415.93
American	31415.93
Dutch   	31415.93
Hebrew  	31415.93
Hebrew (UTF-8)	31415.93
Japanese	31415.93
Norwegian	31415.93
Turkish 	31415.93