Example #1
0
function Ebak_ChangeChar($str,$oldchar,$newchar){
	//是否支持iconv
	if(!Ebak_HaveFun("iconv"))
	{
		return $str;
	}
	if(!empty($newchar))
	{
		$str=iconv($oldchar,$newchar,$str);
	}
	return $str;
}
Example #2
0
function Ebak_ChangeChar($str, $oldchar, $newchar)
{
    if (!Ebak_HaveFun('iconv')) {
        return $str;
    }
    if (!empty($newchar)) {
        $str = iconv($oldchar, $newchar, $str);
    }
    return $str;
}