Hello all,
If I have a string like this 123.456.789.01 , where dots are used to separate the thousands and the decimal part.
How can I first detect this situation? More than one dot. I guess I could use str_word_count() from the manual, right?
Then, once I have determined there are more than one dot, how can I remove all the dots but the right most one?
so 123.456.789.01 would become 123456789.01 with just the dot before the zero.
Thanks in advance.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php