2020年小米高级 PHP 工程师面试题

1、通过哪一个函数,可以把错误转换为异常处理? A:set_error_handler B:error_reporting C:error2exception D:catch 正确答案:A 答案分析:set_error_handler () 可指定一个回调函数,错误发生时,会自动通过指定的回调函数处理。在回调函数中抛出新的异常即可。 Github 2、下列哪个 shell 函数的描述是正确的? A
相关文章
相关标签/搜索