主页
PHP
PHP compact() 函数
tryphp_func_compact2
运行 ❯
×
更改方向
保存代码
更改主题
<?php $firstname = "Peter"; $lastname = "Griffin"; $age = "41"; $name = array("firstname", "lastname"); $result = compact($name, "location", "age"); print_r($result); ?>