^:按位異或
E_ALL ^ E_NOTICE == E_ALL & ~E_NOTICE
E_ALL ^ E_NOTICE == E_ALL & ~E_NOTICE
2019-05-26
異常處理的嵌套應(yīng)該是
try
{
try
{
throw new Exception('異常1');
}
catch (Exception $e1)
{
throw new Exception('異常2');
}
}
catch (Exception $e2)
{
}
try
{
try
{
throw new Exception('異常1');
}
catch (Exception $e1)
{
throw new Exception('異常2');
}
}
catch (Exception $e2)
{
}
2019-05-19
set_error_handler('test'); //使用錯(cuò)誤處理程序函數(shù) test
restore_error_handler(); //回收錯(cuò)誤處理程序
restore_error_handler(); //回收錯(cuò)誤處理程序
2018-05-23
https://www.jianshu.com/p/9c309d4b66d2 PHP錯(cuò)誤實(shí)例詳解
https://www.jianshu.com/p/d5530126ba1e 實(shí)例講解PHP異常
這是根據(jù)課程所整理的博文,需要的同學(xué)關(guān)注下...
https://www.jianshu.com/p/d5530126ba1e 實(shí)例講解PHP異常
這是根據(jù)課程所整理的博文,需要的同學(xué)關(guān)注下...
2018-05-17
感覺(jué)就記錄到文件里要簡(jiǎn)單方便啊。syslog麻煩
2018-03-02