[ create a new paste ] login | about

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

PHP, pasted on Feb 17:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php

$json =  <<<EOT
[{
    "postid": 66,
    "values": [
        "field_key=a",
        "oldvalue=b",
        "newvalue=c dad"
    ]
}]
EOT;

var_dump(json_decode($json));

?>


Output:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
array(1) {
  [0]=>
  object(stdClass)#1 (2) {
    ["postid"]=>
    int(66)
    ["values"]=>
    array(3) {
      [0]=>
      string(11) "field_key=a"
      [1]=>
      string(10) "oldvalue=b"
      [2]=>
      string(14) "newvalue=c dad"
    }
  }
}


Create a new paste based on this one


Comments: