I get some data from the database then create a link from the data.
<a href=\"news/people/" . urldecode($row['title']) . ".html\" target=\"_self\">"
the output is link is http://wwww.website.com/news/people/ask+question+stack.html
so instead of having the plus sign in the link i will like to hve a link with hyphen
like this http://wwww.website.com/news/people/ask-question-stack.html
Thanks for the help Newbie