decode() public method

FastJSON::decode(params:String[, useStdClass:Boolean]):*
public decode ( $encode, $stdClass = false )
コード例 #1
0
ファイル: defines.php プロジェクト: nikshade/fabrik21
 function json_decode($json)
 {
     if (empty($json)) {
         $json = array();
     }
     return FastJSON::decode($json);
 }
コード例 #2
0
ファイル: javascript.php プロジェクト: alencarmo/OCF
 function jsonDecode($s)
 {
     if (!$s) {
         return array();
     }
     if (function_exists('json_decode')) {
         return json_decode($s);
     }
     include_once GORUM_DIR . "/FastJSON.class.php";
     return FastJSON::decode($s);
 }
コード例 #3
0
ファイル: json.php プロジェクト: jiangsuei8/public_php_shl
 static function decode($string) {
     return FastJSON::decode($string);
 }