[ create a new paste ] login | about

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

PHP, pasted on Dec 13:
1
2
3
4
5
6
7
8
9
<?php

$a = array (
  15526=> "Alabaster",
  15137=> "Florala",
  37091=> "Saraland"
);

print_r(json_encode(array_chunk($a, 1, true)));


Output:
1
[{"15526":"Alabaster"},{"15137":"Florala"},{"37091":"Saraland"}]


Create a new paste based on this one


Comments: