Why does my test2 show that the class name has been occupied after running it?
w。
w。 2018-12-18 14:49:41
0
1
1404

错误信息:

Fatal error: Cannot declare class Demo2\mytest1 because the name is already in use in E:\phpstudy\WWW\test\mytest2.php on line 5。


w。
w。

reply all(1)
T马A孟O濤

Because this class name has been declared, please check whether the class name already exists in your file, or whether it already exists in other files.

  • reply According to the video, this is placed in another namespace.
    w。 author 2018-12-19 18:30:35
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template