simon551 Posted July 7, 2007 Share Posted July 7, 2007 Hi, If a user enters a number with a comma in it say 11,000.70 how do I strip out the comma to insert it correctly? Thanks in advance! -s Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted July 7, 2007 Share Posted July 7, 2007 $string = "11,700"; $string = strreplace(",","",$string); Quote Link to comment Share on other sites More sharing options...
simon551 Posted July 7, 2007 Author Share Posted July 7, 2007 thanks! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.