开发者

Which order does getTrace return calls?

Probably a trivial question, but in which order does Exception::getTrace return cal开发者_StackOverflow社区ls? Most recent first or last? I'd like to know before I implement my error handler.

BenTheDesigner


Why don't you test it yourself?

function NestedFunc() {
    throw new Exception("test");
}

function FunctionAbc() {
    NestedFunc();
}

try {
    FunctionAbc();
} catch (Exception $e) {
    var_dump($e->getTrace());
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜