21,886
社区成员
发帖
与我相关
我的任务
分享
<?php
error_reporting(E_ALL^E_NOTICE^E_WARNING); // 加了这句就可以屏蔽警告与提示的错误。
$arr = array('a'=>123);
echo $arr['allowhtml']; // 这里不会出现notice
?>
<?php
$arr = array('a'=>123);
echo $arr['allowhtml']; // 这样就会有提示未定义了。
?>