Return to compact.phpt CVS log | Up to [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / standard / tests / array |
1.1 misho 1: --TEST-- 2: compact() 3: --INI-- 4: unicode.script_encoding=UTF-8 5: unicode.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); 16: var_dump($result); 17: ?> 18: --EXPECT-- 19: array(2) { 20: ["event"]=> 21: string(8) "SIGGRAPH" 22: ["state"]=> 23: string(2) "CA" 24: }