Make page titles seo-friendly for URL


/ Published in: PHP
Save to your folder(s)

If you have a title, for something like a blog or product, and want to make an seo-friendly name to call it, here is a function.

SAMPLE INPUT:
$title = "This foo's bar is rockin' cool!";
echo make_seo_name($title);
//RETURNS:
//this-foos-bar-is-rockin-cool

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.