@ character before a function call

前端 未结 5 2030
迷失自我
迷失自我 2020-12-13 23:07

What is the difference between these two function calls in PHP?

init_get($somevariable);

@init_get($somevariable);
5条回答
  •  死守一世寂寞
    2020-12-13 23:34

    As everyone said, it stops the output of errors for that particular function. However, this decreases performance greatly since it has to change the error display setting twice. I would recommend NOT ignoring warnings or errors and fixing the code instead.

提交回复
热议问题