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? Link to comment https://forums.phpfreaks.com/topic/57987-solved-getting-rid-of-white-space/ 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. Link to comment https://forums.phpfreaks.com/topic/57987-solved-getting-rid-of-white-space/#findComment-287424 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.