View Full Version : changing the name of something
12-10-2008, 02:29 AM
Let's say I have the phrase "The Berry". I would like to change that to "the-berry" (without quotes of course). What function(s) will allow me to do that?
12-10-2008, 02:31 AM
strtolower() will transform the text to lowercase.
str_replace() can be used to replace the space with a hyphen.
12-10-2008, 03:29 AM
Learn about them here.
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.