| 
	
 | 
 Posted by Marcel on 06/13/96 11:29 
"Marcos" <mjs_ops@gmx.net> schreef in bericht  
news:op.syr9b6j54v4sy3@afrodite.network... 
> Hi, 
> 
> Well, I'm developing one application that will have support for many  
> languages and countries, in the application I need to show and to format  
> the currency for the chosen country, is there any way to format the value? 
> 
> As a side note, the value comes from a database with format XXXX.XX where  
> the point(.) is the decimal separator, always. 
> 
> --  
 
I've build this one to get (EURO) values like 123.234,56: 
 
function fmoney($val) { 
 
     $val = "€ ".number_format((round($val,2)), 2, ',', '.'); 
 
     return $val; 
 
}
 
  
Navigation:
[Reply to this message] 
 |