iStriide Posted August 7, 2011 Share Posted August 7, 2011 Can somebody show me how to do this? It would be greatly appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/244142-replacing-spaces-between-usernames-with-underscores/ Share on other sites More sharing options...
AyKay47 Posted August 7, 2011 Share Posted August 7, 2011 $username = "test username"; $username = str_replace(" ","_",$username); print $username; // test_username Quote Link to comment https://forums.phpfreaks.com/topic/244142-replacing-spaces-between-usernames-with-underscores/#findComment-1253821 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.