“Fatal error: Cannot redeclare

前端 未结 17 1016
[愿得一人]
[愿得一人] 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:02

    I'd recommend using get_included_files - as Pascal says you're either looking at the wrong file somehow or this function is already defined in a file that's been included.

    require_once is also useful if the file you're attempting to include is essential.

提交回复
热议问题