Please help me, I am new to PHP and I can not work out how to code this. I am currently using mod-rewrite to re-write my urls to www.test.com/t10-test article title.html I want to use str-replace to replace the spaces with - in "test article title"
I am using the following code and I need str replace the spaces in {$articles[article_loop].title} can anyone help??
href="../t{$articles[article_loop].id}-{$articles[article_loop].title}.html
Thanks