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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 10:12:56
Original
702 people have browsed it

程序不执行$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();

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
Can't run
From 1970-01-01 08:00:00
0
0
0
How to run/debug your PHP code?
From 1970-01-01 08:00:00
0
0
0
Can php 7.1.2 run thinkphp3.2?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template