RE: [PHP] convert string to number

2003-11-17 Thread Jay Blanchard
[snip] > > [snip] > > what is the easiest way to convert a string like this "1,300.99" to a > > number? > > [/snip] > > http://www.php.net/settype That'll just result in the number 1, though, since the conversion to "float" will stop at the comma. If you know that it's just going to be commas in

Re: [PHP] convert string to number

2003-11-17 Thread CPT John W. Holmes
From: "Jay Blanchard" <[EMAIL PROTECTED]> > From: "Diana Castillo" <[EMAIL PROTECTED]> > > > [snip] > > what is the easiest way to convert a string like this "1,300.99" to a > > number? > > [/snip] > > http://www.php.net/settype That'll just result in the number 1, though, since the conversion to

RE: [PHP] convert string to number

2003-11-17 Thread Jay Blanchard
[snip] what is the easiest way to convert a string like this "1,300.99" to a number? [/snip] http://www.php.net/settype -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] convert string to number

2003-11-17 Thread Diana Castillo
what is the easiest way to convert a string like this "1,300.99" to a number? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php