function UTF8toGBK(&$str)
{
if(is_array($str))
{
foreach ($str as &$value)
{
$value = $this->UTF8toGBK($value);
}
return $str;
}
elseif (is_string($str))
{
$str = iconv("UTF-8", "GB18030//IGNORE", $str);
return $str;
}
else
{
return $str;
}
}
{
if(is_array($str))
{
foreach ($str as &$value)
{
$value = $this->UTF8toGBK($value);
}
return $str;
}
elseif (is_string($str))
{
$str = iconv("UTF-8", "GB18030//IGNORE", $str);
return $str;
}
else
{
return $str;
}
}