xref: /PHP-5.4/ext/standard/tests/array/compact.phpt (revision a541bb80)
1--TEST--
2compact()
3--INI--
4unicode.script_encoding=UTF-8
5unicode.output_encoding=UTF-8
6--FILE--
7<?php
8
9$çity  = "San Francisco";
10$state = "CA";
11$event = "SIGGRAPH";
12
13$location_vars = array("c\u0327ity", "state");
14
15$result = compact("event", $location_vars);
16var_dump($result);
17?>
18--EXPECT--
19array(2) {
20  ["event"]=>
21  string(8) "SIGGRAPH"
22  ["state"]=>
23  string(2) "CA"
24}
25