PHP常用函数

tech2022-07-08  205

compact <?php $firstname = "Peter"; $lastname = "Griffin"; $age = "41"; $result = compact("firstname", "lastname", "age"); print_r($result); ?>

运行结果

Array ( [firstname] => Peter [lastname] => Griffin [age] => 41 )

最新回复(0)