Example
1.000,00
1000.00
1,000.00
I would like to convert those to a single format
1000.00
?
function money($money)
{
/* written by [EMAIL PROTECTED] */
$money=str_replace(array(',','.'),'',$money);
$money=substr($money,0,strlen($money)-2).'.'.substr($money,-2);
}
$money='1.000,00';
, 2003 10:05 AM
To: Robert Mena; php mailing list
Subject: Re: [PHP] Correct number format (curency)
Example
1.000,00
1000.00
1,000.00
I would like to convert those to a single format
1000.00
?
function money($money)
{
/* written by [EMAIL PROTECTED] */
$money=str_replace(array
2 matches
Mail list logo