PHP致命错误:无法重新声明类 [英] PHP Fatal error: Cannot redeclare class
本文介绍了PHP致命错误:无法重新声明类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人知道什么会导致此问题吗?
Does anyone know what can cause this problem?
PHP致命错误:无法重新声明类
PHP Fatal error: Cannot redeclare class
推荐答案
这意味着您已经创建了一个类.
It means you've already created a class.
例如:
class Foo {}
// some code here
class Foo {}
第二个Foo会抛出错误.
That second Foo would throw the error.
这篇关于PHP致命错误:无法重新声明类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文