try{
throw new Error("出錯了");
}catch(e){
console.log(e.message)
var stack = e.stack
var exp = /\(.*\)/
var ret = exp.exec(stack)
console.log(ret[0])
}finally{
console.log("最后執(zhí)行")
}
getMessage().PHP_EOL;
echo $e->getFile().PHP_EOL;
echo $e->getLine().PHP_EOL;
}finally{
echo "最后執(zhí)行\(zhòng)n";
}