[snip] Is there an easy way to make a number have no comma or decmal points? I've tried string replace with the comma but thought there would be a better alternative that I'm missing to cover more bases. number_format seems to add instead of take away items. [/snip]
number_format($theNumber, 0, '', ''); (I think I have all of the attributes here, check http://www.php.net/number_format to make sure) has no decimal places, no seperator, and no comma. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php