array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'zh', ), 'this' => array ( 0 => 'function.uopz-get-exit-status.php', 1 => 'uopz_get_exit_status', 2 => 'Retrieve the last set exit status', ), 'up' => array ( 0 => 'ref.uopz.php', 1 => 'Uopz 函数', ), 'prev' => array ( 0 => 'function.uopz-function.php', 1 => 'uopz_function', ), 'next' => array ( 0 => 'function.uopz-get-hook.php', 1 => 'uopz_get_hook', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/uopz/functions/uopz-get-exit-status.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>
(PECL uopz 5, PECL uopz , PECL uopz 7)
uopz_get_exit_status — Retrieve the last set exit status
Retrieves the last set exit status, i.e. the value passed to exit().
此函数没有参数。
示例 #1 uopz_get_exit_status() example
<?php
exit(123); 
echo uopz_get_exit_status();?>以上示例会输出:
123
OPcache optimizes away dead code after unconditional exit.