2006-11-15 22:44:29 +00:00
|
|
|
--TEST--
|
2007-11-02 19:41:12 +00:00
|
|
|
compact()
|
|
|
|
--INI--
|
|
|
|
unicode.script_encoding=UTF-8
|
|
|
|
unicode.output_encoding=UTF-8
|
2006-11-15 22:44:29 +00:00
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
|
2007-11-02 19:41:12 +00:00
|
|
|
$çity = "San Francisco";
|
|
|
|
$state = "CA";
|
|
|
|
$event = "SIGGRAPH";
|
2006-11-15 22:44:29 +00:00
|
|
|
|
2007-11-02 19:41:12 +00:00
|
|
|
$location_vars = array("c\u0327ity", "state");
|
2006-11-15 22:44:29 +00:00
|
|
|
|
2007-11-02 19:41:12 +00:00
|
|
|
$result = compact("event", $location_vars);
|
|
|
|
var_dump($result);
|
2006-11-15 22:44:29 +00:00
|
|
|
?>
|
2007-11-02 19:41:12 +00:00
|
|
|
--EXPECT--
|
2006-11-15 22:44:29 +00:00
|
|
|
array(2) {
|
2007-11-02 19:41:12 +00:00
|
|
|
["event"]=>
|
|
|
|
string(8) "SIGGRAPH"
|
|
|
|
["state"]=>
|
|
|
|
string(2) "CA"
|
2006-11-15 22:44:29 +00:00
|
|
|
}
|