PHP - OOP - Why is my function called twice?

前端 未结 5 1142
逝去的感伤
逝去的感伤 2021-01-17 05:00

I\'m facing a problem that my function is called twice everytime i submit my form

my form file with the call to the function:



        
5条回答
  •  一生所求
    2021-01-17 05:55

    You call one time the function with the constructor, seconde time manually. In PHP 5.3.3, if you name function like the class, it's a constructor.

提交回复
热议问题