PHP中的@符号
使用$exists = @$userID;
的优点是什么? 语句,与if(isset($userID)){$exists = $userID; }else{$exists = false;}
的较长表示if(isset($userID)){$exists = $userID; }else{$exists = false;}
if(isset($userID)){$exists = $userID; }else{$exists = false;}
"@"
符号快得多,因为我觉得它的可读性较差?
显然,在谷歌搜索5秒后,它抑制了错误报告。
链接地址: http://www.djcxy.com/p/57715.html上一篇: @ symbol in PHP
下一篇: Why a function starts with @ in php ? like @unpack(xxx)?