foochuck Posted April 22, 2010 Share Posted April 22, 2010 This should be easy but I can't figure it out. I have a string: $myString = "cr-charles-rob"; I want to remove the dashes ( - ) from the string so it looks like this: "crcharlesrob" What function can I use to accomplish that? Quote Link to comment Share on other sites More sharing options...
MatthewJ Posted April 22, 2010 Share Posted April 22, 2010 $myString = "cr-charles-rob"; $myString = str_replace("-", "", $myString) 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.