Re: [PHP] changing strings to float vars

2001-01-15 Thread Steve Edberg
At 4:28 PM -0500 1/15/01, bill wrote: >Sometimes clients put a dollar sign "$" in a form that only needs a >number (like "1.50"). > >Is there a way to take a post variable and automatically convert it to a >float value, stripping off any non-numeric characters? > >I tried doubleval() without succe

[PHP] changing strings to float vars

2001-01-15 Thread bill
Sometimes clients put a dollar sign "$" in a form that only needs a number (like "1.50"). Is there a way to take a post variable and automatically convert it to a float value, stripping off any non-numeric characters? I tried doubleval() without success and I can't use intval() because it has de