编码过程可能会遇到出现警告,最后投入使用的时候,如果想要关掉警告 ,在php页面的开头部分加上 error_reporting(E_ERROR); ini_set("display_errors","Off");