ezryder
06-06-2005, 05:46 PM
Hi,
whats the easiest way to remove commas from numbers? I can do something which splits each element, loops through an aray omparing each element but I'm sure there must be a clean way?
eg:
$number = "1,345,567";
I want something which will convert $number to "1345567"
thanks
whats the easiest way to remove commas from numbers? I can do something which splits each element, loops through an aray omparing each element but I'm sure there must be a clean way?
eg:
$number = "1,345,567";
I want something which will convert $number to "1345567"
thanks