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