“Fatal error: Cannot redeclare

前端 未结 17 979
[愿得一人]
[愿得一人] 2020-11-22 05:26

I have a function(this is exactly how it appears, from the top of my file):



        
17条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-11-22 06:01

    I want to add my 2 cent experience that might be helpful for many of you.

    If you declare a function inside a loop (for, foreach, while), you will face this error message.

提交回复
热议问题