“Fatal error: Cannot redeclare

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

    you can check first if name of your function isn`t exists or not before you write function By

      if (!function_exists('generate_salt'))
    {
        function generate_salt()
        {
        ........
        }
    }
    

    OR you can change name of function to another name

提交回复
热议问题