摘要: 函数的默认参数 允许定义函数时,指定参数的默认值,如:function js_location($url, $alert='', $top=''){ if($alert=='' && $top==''){ header("Location: $url"); exit; } echo ''; e... 阅读全文
posted @ 2016-01-19 17:28 千年海岩 阅读(1767) 评论(0) 推荐(0) 编辑
摘要: 第一次看到以下语句的写法大惑不解($mCfg['LockChinaIp']==1 && (int)$_SESSION['AdminUserId']==0 && substr_count($_SERVER['PHP_SELF'], '/manage/')==0 && (preg_match... 阅读全文
posted @ 2016-01-19 15:53 千年海岩 阅读(304) 评论(0) 推荐(0) 编辑