请问我写的这个php函数体传递变量的时候为什么总是上一个函数体的值? function Msg($functionName){ print_r(debug_backtrace()); //观察一下是谁调用的、参数是什么 switch($functionName){ ..... }} 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Array ( [0] => Array ( [file] => C:\wamp\www\mjshu\login.php [line] => 40 [function] => Msg [args] => Array ( [0] => 1 ) ) [1] => Array ( [file] => C:\wamp\www\mjshu\login.php [line] => 19 [function] => loginSQL [args] => Array ( [0] => smj227227 [1] => Password ) ) [2] => Array ( [file] => C:\wamp\www\mjshu\login.php [line] => 11 [function] => emptyloginnull [args] => Array ( [0] => smj227227 [1] => Password ) ) ) 登录失败,请检查帐号密码是否输入错误! 本帖最后由 xuzuning 于 2014-02-08 14:10:49 编辑 var_dump(0 == "emptyloginnull");bool(true)传入 0 也是 case "emptyloginnull": 分支成立 一个关于'='号的转义字符问题 奇怪的json_decode问题,,为什么不能decode呢? 为什么要用 ip2long()转换ip呢? 关于PHP模板标签的转换 用jpgraph画图,怎么才能把x,y坐标轴固定在中间呢?求助!!很急 解决马上给分!!! 怎么样才能在输入的文本中的超链接有效? 大家说说那种网络广告效果最好? php如何在shell的调用中传入参数 请教各位 PHP使用.h文件的问题 各位高手帮帮忙啊! php不能解析这样的json apache 如何配置 页面引入*.gz文件
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货