P-nut
11-20-2005, 09:49 PM
OK I know I know how to do this but for the life of me can't remember nor find my answer here or on Google.
I have website pages that use PHP to read the file name (before the .php) and use that to generate the page title on the fly.
Example: Compare-Plans-Now.php = Title of 'Compare-Plans-Now'
Is it possible to use PHP to replace the dashes between the words so that 'Compare-Plans-Now' becomes 'Compare Plans Now'? If so, how would I do that?
Thanks! :D
I have website pages that use PHP to read the file name (before the .php) and use that to generate the page title on the fly.
Example: Compare-Plans-Now.php = Title of 'Compare-Plans-Now'
Is it possible to use PHP to replace the dashes between the words so that 'Compare-Plans-Now' becomes 'Compare Plans Now'? If so, how would I do that?
Thanks! :D
