输入banner图图片脚本导航/分类

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

PHP 类

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


回复讨论(解决方案)

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