PDA

View Full Version : Text modifying script



Agrajag
01-10-2006, 12:15 PM
i would like a simple PHP script which replaces all underscores in a string with spaces. i have no idea of how to go about writing such a script:confused:
this will be used in a php page which includes other php or html pages into it which are defined by a query string. the name of the page will be turned into a title by means of this script.

Please help!:D
thanks

Twey
01-10-2006, 08:33 PM
$title = str_replace("_", " ", $url);

Agrajag
01-11-2006, 12:05 AM
Wow thanks that's so easy:D