/ Published in: PHP

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
SAMPLE INPUT:
$title = "This foo's bar is rockin' cool!";
echo make_seo_name($title);
//RETURNS:
//this-foos-bar-is-rockin-cool
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function make_seo_name($title) { }
Comments
