[ create a new paste ] login | about

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

PHP, pasted on Jun 12:
1
2
3
4
<?php
$json = '[{"a":1,"b":2,"c":3,"d":4,"e":5},{"a":1,"b":2,"c":3,"d":4,"e":5},{"a":1,"b":2,"c":3,"d":4,"e":5}]';
var_dump(json_decode($json, true));
?>


Output:
array(3) {
  [0]=>
  array(5) {
    ["a"]=>
    int(1)
    ["b"]=>
    int(2)
    ["c"]=>
    int(3)
    ["d"]=>
    int(4)
    ["e"]=>
    int(5)
  }
  [1]=>
  array(5) {
    ["a"]=>
    int(1)
    ["b"]=>
    int(2)
    ["c"]=>
    int(3)
    ["d"]=>
    int(4)
    ["e"]=>
    int(5)
  }
  [2]=>
  array(5) {
    ["a"]=>
    int(1)
    ["b"]=>
    int(2)
    ["c"]=>
    int(3)
    ["d"]=>
    int(4)
    ["e"]=>
    int(5)
  }
}


Create a new paste based on this one


Comments: