...

View Full Version : changing the name of something



Bob42
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?

PappaJohn
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.

masterofollies
12-10-2008, 03:29 AM
Learn about them here.

http://us3.php.net/strtolower

http://us3.php.net/str_replace



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum