- Forums
- Scripts
- Clean Url Clean Keywords Function Clean_url Clean_keywords Keyword
This Page Contains information about Clean Url Clean Keywords Function Clean_url Clean_keywords Keyword By wallpaperama in category Scripts with 0 Replies. [1334], Last Updated: Sat May 18, 2024
wallpaperama
Tue Apr 15, 2008
0 Comments
713 Visits
this function or class is used to clean words for ready for the meta tags keywords
function clean_url($text)
{
#### FUNCTION BY WWW.WEBUNE.COM AND WALLPAPERAMA.COM
## PLEASE DO NOT REMOVE THIS.. THANK YOU
$text=strtolower($text);
$code_entities_match = array( '"' ,'!' ,'@' ,'#' ,'$' ,'%' ,'^' ,'&' ,'*' ,'(' ,')' ,'+' ,'{' ,'}' ,'|' ,':' ,'"' ,'<' ,'>' ,'?' ,'[' ,']' ,'' ,';' ,"'" ,',' ,'.' ,'_' ,'/' ,'*' ,'+' ,'~' ,'`' ,'=' ,' ' ,'---' ,'--','--');
$code_entities_replace = array('' ,'-' ,'-' ,'' ,'' ,'' ,'-' ,'-' ,'' ,'' ,'' ,'' ,'' ,'' ,'' ,'-' ,'' ,'' ,'' ,'' ,'' ,'' ,'' ,'' ,'' ,'-' ,'' ,'-' ,'-' ,'' ,'' ,'' ,'' ,'' ,'-' ,'-' ,'-','-');
$text = str_replace($code_entities_match, $code_entities_replace, $text);
return $text;
}
function clean_keywords($keywords){
$keywords = clean_url($keywords);
$keywords = str_replace(".","",strtolower($keywords));
$keywords = str_replace("-"," ",$keywords);
$keywords = str_replace(" ",", ",$keywords);
$keywords = str_replace(",,",",",$keywords);
return $keywords;
}