Can I register more than one shutdown function in PHP?

using register_shutdown_functionI can register the code for execution at the end of the execution of the PHP script "no matter what."

Can I register more than one function?

This question arises since I do not know if anyone has registered it when I am going to register my own.

Thank.

+3
source share
2 answers

Nevermind, the answer is yes. Guide:

http://ca3.php.net/register_shutdown_function

+6
source

Yes, each will be called in the order in which it was registered in the PHP documentation .

0
source

Source: https://habr.com/ru/post/1698783/


All Articles