jol*_*olt 23 php operators
基本上,我看到人们@在他们的函数调用之前使用,不是为了每个函数,而是为某些类型的扩展函数file_get_contents(),mysql_connect()等等.
@
file_get_contents()
mysql_connect()
是的,问题是:@在函数调用之前有什么目的?
或者换句话说,@file_get_contents()和之间有什么区别file_get_contents()?
@file_get_contents()
fab*_*rik 38
@是一个错误控制操作符.基本上它是在抑制错误.
cod*_*ict 6
这是error control operator用于抑制函数调用生成的任何错误的PHP .
error control operator
归档时间:
15 年,2 月 前
查看次数:
13741 次
最近记录:
10 年 前