/** * json输出 * * @param unknown_type $info */ public function json_out ($info) { header(‘Content-type: text/javascript;charset=utf-8‘); echo json_encode($info); }
使用json格式输出
原文:http://www.cnblogs.com/chrdai/p/6090340.html