[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
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
[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
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
4 matches
Mail list logo