[ create a new paste ] login | about

Link: http://codepad.org/HgPNgmVF    [ raw code | output | fork ]

PHP, pasted on Aug 11:
1
2
3
4
<?php
$input = '{"chg":"-0.71","vol":"40700","time":"11.08.2011 12:29:09","high":"1.417","low":"1.360","last":"1.400","pcl":"1.410","turnover":"56,560.25"}';
print_r(json_decode($input, true));
?>


Output:
1
2
3
4
5
6
7
8
9
10
11
Array
(
    [chg] => -0.71
    [vol] => 40700
    [time] => 11.08.2011 12:29:09
    [high] => 1.417
    [low] => 1.360
    [last] => 1.400
    [pcl] => 1.410
    [turnover] => 56,560.25
)


Create a new paste based on this one


Comments: