a lot of debug
This commit is contained in:
16
webserver/utils.php
Normal file
16
webserver/utils.php
Normal file
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
|
||||
function jsonDecode($json)
|
||||
{
|
||||
$jsonArray = array();
|
||||
$json = trim($json, " {[]}");
|
||||
$tmp = explode(",", $json);
|
||||
foreach($tmp as $value)
|
||||
{
|
||||
$tmp2 = explode (":" , $value);
|
||||
$jsonArray[trim($tmp2[0], '"')] = trim($tmp2[1], '"');
|
||||
}
|
||||
return $jsonArray;
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user