PHP8 uopz_get_exit_status — 檢索最后設(shè)置的退出狀態(tài)

2023-10-08 14:44 更新

(PECL uopz 5, PECL uopz , PECL uopz 7)

uopz_get_exit_status — 檢索最后設(shè)置的退出狀態(tài)。

說明

uopz_get_exit_status(): mixed

檢索最后設(shè)置的退出狀態(tài),即傳遞給exit()的值。

參數(shù)

此函數(shù)沒有參數(shù)。

返回值

This function returns the last exit status, or null if exit() has not been called.

示例

示例 #1 uopz_get_exit_status() example

<?php
exit(123);
echo uopz_get_exit_status();?>

以上示例會輸出:

123

注釋

警告
OPcache在無條件退出后會優(yōu)化掉無用代碼。

參見

  • uopz_allow_exit() - 允許控制禁用的退出操作碼。


以上內(nèi)容是否對您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號
微信公眾號

編程獅公眾號