waiwai933 Posted December 13, 2008 Share Posted December 13, 2008 How do you write a script that takes however many number of spaces, and simplifies it to become one space? Quote Link to comment Share on other sites More sharing options...
corbin Posted December 13, 2008 Share Posted December 13, 2008 preg_replace('([ ]+)', ' ', $str); 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.