Home > Backend Development > PHP Tutorial > PHP Fatal error: Cannot redeclare class

PHP Fatal error: Cannot redeclare class

WBOY
Release: 2016-06-23 13:36:09
Original
1070 people have browsed it

php文件报错

Fatal error: Cannot redeclare class

指类被从新定义,可能再循环里报错,而你正好用了include或者require 

换成require_once 或者 include_once ok了

source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template