xref: /PHP-7.0/ext/standard/tests/array/compact.phpt (revision bae46f30)
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