dis-bench / src /php /php-src /ext /json /tests /009.phpt
meddyrat's picture
Replace repository contents with the original corrected artifact
1e94262
Raw History Blame Contribute Delete
252 Bytes
--TEST--
json_encode() with non-packed array that should be encoded as an array rather than object
--FILE--
<?php
$a = array(1, 2, 3, 'foo' => 'bar');
unset($a['foo']);
var_dump(json_encode($a));
echo "Done\n";
?>
--EXPECT--
string(7) "[1,2,3]"
Done