PHP Fatal error: Cannot redeclare class


Does anyone know what can cause this problem?

PHP Fatal error: Cannot redeclare class


Answers:


It means you've already created a class.

For instance:

class Foo {}

// some code here

class Foo {}

That second Foo would throw the error.