php 数组函数,extract 2022年4月29日 zhufenghua 留下评论 已知有数组 $params : array( 'action' => 'store', 'template' => 'store' ); 则使用 extract 可将这2个函数导出为变量,变量名为键名,变量值为键值 extract ($params); 得到的结果相当于: $action = 'store'; $template = 'store';