日期:2014-05-16 浏览次数:20519 次
$string = str_replace(array(chr(0x08), chr(0x0C)), array('\b', '\f'), $string); $string = self::encodeUnicodeString($string);
Zend_Json::$useBuiltinEncoderDecoder = true; $arr = array('你好键1'=> '你好值1', '你好键2'=> '你好值2'); echo Zend_Json::encode($arr);
{"你好键1":"你好值1","你好键2":"你好值2"}