TP4初始版本提交

This commit is contained in:
thinkphp
2015-01-16 22:42:51 +08:00
commit 223760b65d
139 changed files with 23425 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
<?php
// +----------------------------------------------------------------------
// | TOPThink [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2011 http://topthink.com All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: 麦当苗儿 <zuojiazi.cn@gmail.com> <http://www.zjzit.cn>
// +----------------------------------------------------------------------
namespace Think\Transform\Driver;
class Json{
public function encode($data){
return json_encode($data);
}
public function decode($data, $assoc = true){
return json_decode($data, $assoc);
}
}