- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
function json2array($json){
if(get_magic_quotes_gpc()){
$json = stripslashes($json);
}
$json = substr($json, 1, -1);
$json = str_replace(array(":", "{", "[", "}", "]"), array("=>", "array(", "array(", ")", ")"), $json);
@eval("\$json_array = array({$json});");
return $json_array;
}
someone 18.12.2014 17:34 # +3
guest 19.12.2014 00:16 # +3
guest 19.12.2014 09:22 # +3
http://govnokod.ru/bicycle
movaxbx 19.12.2014 11:06 # +3
guest 19.12.2014 12:48 # −1
guest 20.12.2014 05:47 # 0
bormand 20.12.2014 09:31 # +1