php dump url http dumpz org 1354395 data json_decode file_get_contents

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
// dump url:
// http://dumpz.org/1354395/
$data = json_decode(file_get_contents('http://dumpz.org/api?dump=1354395'), true);
$print_r($data);
?>
Response example:
Array
(
[response] => Array
(
[dump_id] => 1354395
[language] => C++
[content] => highlighted code
[timestamp] => 2134642334
...
etc
...
)
)