Thinkphp5.1 input() 的default 不管用?

浏览:707 发布日期:2019/05/10 分类:ThinkPHP5专区 关键字: input thinkphp5 求助
//提取数据
$param = [
'type' => input('get.type', 'gold'),
'user_id' => input('get.user_id', 0)
];
prt($param);die;

Array
(
[type] =>
[user_id] =>
)

Thinkphp5.1 input() 的default 不管用?
最佳答案
评论( 相关
后面还有条评论,点击查看>>