php:// function to clean string for SEO usage
If you need a good function to clean strings to use them as URLs for SEO purposes, here’s a suggestion: function chunk_special_chars($string) { $normalizeChars = array( ‘Š’=>’S’, ‘š’=>’s’, ‘Ð’=>’Dj’,’Ž’=>’Z’, ‘ž’=>’z’, ‘À’=>’A’, ‘Á’=>’A’, ‘Â’=>’A’, ‘Ã’=>’A’, ‘Ä’=>’A’, ‘Å’=>’A’, ‘Æ’=>’A’, ‘Ç’=>’C’, ‘È’=>’E’, ‘É’=>’E’, ‘Ê’=>’E’, ‘Ë’=>’E’, ‘Ì’=>’I’, ‘Í’=>’I’, ‘Î’=>’I’, ‘Ï’=>’I’, ‘Ñ’=>’N’, ‘Ò’=>’O’, ‘Ó’=>’O’, ‘Ô’=>’O’, ‘Õ’=>’O’,… Continue reading
Deprecated: printf(): Passing null to parameter #1 ($format) of type string is deprecated in /var/www/vhosts/blog.portnumber53.com/html/wp-content/themes/mantra/includes/theme-comments.php on line 86