diff options
Diffstat (limited to 'tests/lang/array_shortcut_002.phpt')
-rw-r--r-- | tests/lang/array_shortcut_002.phpt | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/lang/array_shortcut_002.phpt b/tests/lang/array_shortcut_002.phpt new file mode 100644 index 0000000..25aee9b --- /dev/null +++ b/tests/lang/array_shortcut_002.phpt @@ -0,0 +1,13 @@ +--TEST-- +Square bracket associative array shortcut test +--FILE-- +<?php +print_r(["foo" => "orange", "bar" => "apple", "baz" => "lemon"]); +?> +--EXPECT-- +Array +( + [foo] => orange + [bar] => apple + [baz] => lemon +) |