Re: [PHP] Stripping Decimals

2003-11-04 Thread Ed Curtis
Thanks! Works like a charm. Ed On Tue, 4 Nov 2003, CPT John W. Holmes wrote: > From: "Ed Curtis" <[EMAIL PROTECTED]> > > I currently use number_format() and str_replace() to remove a "," or "$" > > if entered and reformat it as a price for an item. I've asked the > > user not to use decimal

Re: [PHP] Stripping Decimals

2003-11-04 Thread CPT John W. Holmes
From: "Ed Curtis" <[EMAIL PROTECTED]> > I currently use number_format() and str_replace() to remove a "," or "$" > if entered and reformat it as a price for an item. I've asked the > user not to use decimals but some still do. How do I remove a decimal and > anything after from a number in a vara

RE: [PHP] Stripping Decimals

2003-11-04 Thread Jay Blanchard
[snip] I currently use number_format() and str_replace() to remove a "," or "$" if entered and reformat it as a price for an item. I've asked the user not to use decimals but some still do. How do I remove a decimal and anything after from a number in a varable? [/snip] http://www.php.net/explod

[PHP] Stripping Decimals

2003-11-04 Thread Ed Curtis
I currently use number_format() and str_replace() to remove a "," or "$" if entered and reformat it as a price for an item. I've asked the user not to use decimals but some still do. How do I remove a decimal and anything after from a number in a varable? Thanks, Ed -- PHP General Mailing Li