当前位置:Gxlcms > PHP教程 > PHP怎么判断一个类已经存在?

PHP怎么判断一个类已经存在?

时间:2021-07-01 10:21:17 帮助过:3人阅读

PHP 类

PHP怎么判断一个类已经存在?不用再加载了。


回复讨论(解决方案)

if (class_exists('MyClass')) {    $myclass = new MyClass();}

人气教程排行