function clean_image_name($name)
{
$name = strtolower($name);
$code_entities_match = array( '"' ,'!' ,'@' ,'#' ,'$' ,'%' ,'^' ,'&' ,'*' ,'(' ,')' ,'+' ,'{' ,'}' ,'|' ,':' ,'"' ,'<' ,'>' ,'?' ,'[' ,']' ,'' ,';' ,"'" ,',' ,'_' ,'/' ,'*' ,'+' ,'~' ,'`' ,'=' ,' ' ,'---' ,'--','--');
$code_entities_replace = array('' ,'-' ,'-' ,'' ,'' ,'' ,'-' ,'-' ,'' ,'' ,'' ,'' ,'' ,'' ,'' ,'-' ,'' ,'' ,'' ,'' ,'' ,'' ,'' ,'' ,'' ,'-' ,'-' ,'-' ,'' ,'' ,'' ,'' ,'' ,'-' ,'-' ,'-','-');
$name = str_replace($code_entities_match, $code_entities_replace, $name);
return $name;
}
Clean Image File Name Function In Php
Clean Image File Name Function In Php
Clean Image File Name Function In Php
Post Description:
Post Tags: clean, image, file, name, function, in, php
This Post Has Been Viewed 389 Times Since Mon Feb 25, 2008 10:32 am Posted By hostman with 0 replies
Post Description:
Post Tags: clean, image, file, name, function, in, php
This Post Has Been Viewed 389 Times Since Mon Feb 25, 2008 10:32 am Posted By hostman with 0 replies
| Clean Image File Name Function In Php |
Leave Your Comments [ dejar commentarios ]
Comments and replies About Clean Image File Name Function In Php
(0) Comments

