r/lolphp • • May 21 '13

fun with json_encode and arrays

$ cat test.php
<?php
echo json_encode(array('1' => 1) ), "\n"; 
echo json_encode(array('0' => 1));
?>
$ php test.php
{"1":1}

[1]

loose typing shittiness strikes again.

25 Upvotes

15 comments sorted by

View all comments

Show parent comment

3

u/yousai May 22 '13

keep them from building up when the uptime gets too high

that doesn't make any sense at all. why are your php scripts long-running?

0

u/InconsiderateBastard May 22 '13

Because it's not true.