Removing Commas from XML Data using SimpleXML

Hi Guys, is it possible to remove commas from numbers in an XML node while bringing does numbers into an array.

$tmp = (array) $item->$Level;

I am using min() to get the minimum value of $Level

The number are a mix of thousand and hundreds. I need to remove any commas

IE 1,000.00 should come in as 1000.00

Is this possible?

Many thanks

JOn

[php]$tmp = (array) $item->$Level;
$tmp = str_replace(",", “”, $tmp) [/php]

Sponsor our Newsletter | Privacy Policy | Terms of Service