input助手函数第一个参数增加默认值

This commit is contained in:
thinkphp
2016-07-19 18:14:05 +08:00
parent 6eca693dcd
commit 9e4611118b

View File

@@ -115,7 +115,7 @@ if (!function_exists('input')) {
* @param string $filter 过滤方法
* @return mixed
*/
function input($key, $default = null, $filter = null)
function input($key = '', $default = null, $filter = null)
{
if (0 === strpos($key, '?')) {
$key = substr($key, 1);