Resume PHP to execution script after exception

前端 未结 4 1834
[愿得一人]
[愿得一人] 2021-01-04 07:01

I have a php script lets say during execution the scripts throws an exception. I want my PHP to resume from where it left off (where it had thrown the exception).

Sh

4条回答
  •  忘掉有多难
    2021-01-04 07:17

    Use php 4/5 register_shutdown_function.

    Doc here: http://php.net/manual/en/function.register-shutdown-function.php

提交回复
热议问题