php 出现在这里的.@mysql_query("SET character_set_connection=$this->charset,character_set_results=$this->charset,character_set_client=binary",$this->link);

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/04 11:29:39
php 出现在这里的.@mysql_query(charset,character_set_results=$this->charset,character_set_client=binary",$this->link);" />

php 出现在这里的.@mysql_query("SET character_set_connection=$this->charset,character_set_results=$this->charset,character_set_client=binary",$this->link);
php
出现在这里的.
@mysql_query("SET character_set_connection=$this->charset,character_set_results=$this->charset,character_set_client=binary",$this->link);

php 出现在这里的.@mysql_query("SET character_set_connection=$this->charset,character_set_results=$this->charset,character_set_client=binary",$this->link);
错误抑制符工作原理:
使用@时的实际操作为:
1. 保存当前的error_reporting值, 并设置error_reporting(0); //关闭错误输出
2. 恢复之前保存的error_reporting值.
@include('file');
表示为代码即
1.$foo = error_reporting(0);
2.include('file');
3.error_reporting($foo);
因此如果我们需要大量的使用@
不如手动的控制 error_reporting 以节省多次重复动作的开销