blob: ec9d9dd0f0eedb7fb02ffc6613e03ba2af183746 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
--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
|