<?php
trigger_error("E_USER_NOTICEのエラー!!");
trigger_error("E_USER_WARNINGのエラー!!",E_USER_WARNING);
trigger_error("E_USER_ERRORのエラー!!",E_USER_ERROR);
echo "処理終了\n";
?>
●実行結果
Notice: E_USER_NOTICEのエラー!! in C:\php\develop\test.php on line 2
Warning: E_USER_WARNINGのエラー!! in C:\php\develop\test.php on line 3
Fatal error: E_USER_ERRORのエラー!! in C:\php\develop\test.php on line 4
|