简单教程
提交运行
代码编辑器:
<?php $firstname = "Peter"; $lastname = "Griffin"; $age = "41"; $result = compact("firstname", "lastname", "age"); print_r($result);
运行结果: