Registers a callback to be executed after script execution finishes or exit() is called. 注冊一個回調(diào)函數(shù),此函數(shù)在腳本運(yùn)行完畢或調(diào)用exit()時執(zhí)行。 從字面上理解,__destruct是對象層面的,而register_shutdown_function是整個腳本層面的,理應(yīng)register_shutdown_function的級別更高,其所注冊的函數(shù)也應(yīng)最后執(zhí)行...
www.dbjr.com.cn/article/563...htm 2025-5-26