「PHP入門」Exception(例外)のメッセージを出力するサンプル
サンプルコード
try {
//some code
throw new Exception("Error message");
} catch(Exception $e) {
echo $e->getMessage();
}
Coding Changes the World
サンプルコード
try {
//some code
throw new Exception("Error message");
} catch(Exception $e) {
echo $e->getMessage();
}