Re: [PHP] Correct number format (curency)

2003-02-20 Thread Bas Jobsen
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';

RE: [PHP] Correct number format (curency)

2003-02-20 Thread Dennis Cole
, 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