首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > PHP >

程序不执行$run = new $mod();就不执行啦!是什么原因解决方案

2012-03-22 
程序不执行$run new $mod()就不执行啦!是什么原因$mod isset($_GET[m]) ? ucfirst($_GET[m]) :

程序不执行$run = new $mod();就不执行啦!是什么原因
$mod = isset($_GET['m']) ? ucfirst($_GET['m']) : 'Index'; //默认加载Index 函数isset ucfirst() 首字母大写
$mod .= "Action";
$run = new $mod();
$run->run();

[解决办法]
$run = new $mod();
$run->run();

new mod();

热点排行