generate seo frienly url from a text like wordpress

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
palash14
Forum Newbie
Posts: 1
Joined: Fri Oct 30, 2009 9:34 am

generate seo frienly url from a text like wordpress

Post by palash14 »

Convert: "åäö" to "aao", "space" to "-", "!?" to "nothing", and all to lower case.

function MakeSeo($string)
{
???
}

i want a php function which will be generate seo friendly url like wordpress blog

Thanks
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: generate seo frienly url from a text like wordpress

Post by pickle »

Look into str_replace()
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply