search

Home  >  Q&A  >  body text

Why does my test2 show that the class name has been occupied after running it?

错误信息:

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。2231 days ago1440

reply all(1)I'll reply

  • TAO

    TAO2018-12-19 17:57:11

    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
    0
  • w。

    According to the video, this is placed in another namespace.

    w。 · 2018-12-19 18:30:35
  • Cancelreply