PDA

View Full Version : How do i change spaces to _?


Sean
28 Dec 2001, 04:41
I want to do this for some headline thingy. There is some simple way, but I don't know what to start looking for at php.net..

Any help here?

Thanks.

PS: This would happen to a variable.

Mark Hensler
28 Dec 2001, 07:43
$my_string = str_replace(" ", "_", $my_string);
PHP Docs: str_replace() (http://www.php.net/manual/en/function.str-replace.php)

Sean
28 Dec 2001, 14:05
Amazing..All you need to know is the tag, than it's simple! :)

Thanks.