king arthur Posted July 1, 2007 Share Posted July 1, 2007 Anyone have a quick simple way of getting rid of white space in the middle of a string? I've tried str_replace(" ", " ", $string) but doesn't seem to do it, I guess it doesn't work with spaces? Quote Link to comment Share on other sites More sharing options...
king arthur Posted July 1, 2007 Author Share Posted July 1, 2007 Sorry guys, just discovered that it does work, it's just that the strings were full of tabs and newline characters not extra spaces. 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.