/ Published in: PHP
The following function will return a SEO friendly URL using a supplied string.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php function seo($string){ $string = preg_replace( "`&([a-z])(acute|uml|circ|grave|ring|cedil|slash|tilde|caron|lig|quot|rsquo);`i","\\1", $string ); } ?>