GetVars()
可快速获取 GET/POST/COOKIE 等传值;
不存在时将默认返回null,无需isset($_GET['act'])判断;
可通过第三个可选参数决定默认返回值;
其实第二个参数大小写不敏感,但是不知道为什么习惯上还是大写;
$act = GetVars("act", "GET"); $name = GetVars("name", "POST"); $password = GetVars("password", "COOKIE", "12345678");
摘要:GetVars()可快速获取 GET/POST/COOKIE 等传值;不存在时将默认返回null,无需isset($_GET['act'])判断;可通过第三个可选参数决定默认返回值;其实第二个参数大小写不敏感,
可快速获取 GET/POST/COOKIE 等传值;
不存在时将默认返回null,无需isset($_GET['act'])判断;
可通过第三个可选参数决定默认返回值;
其实第二个参数大小写不敏感,但是不知道为什么习惯上还是大写;
$act = GetVars("act", "GET"); $name = GetVars("name", "POST"); $password = GetVars("password", "COOKIE", "12345678");