array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'pt_BR', ), 'this' => array ( 0 => 'function.uopz-get-exit-status.php', 1 => 'uopz_get_exit_status', ), 'up' => array ( 0 => 'ref.uopz.php', 1 => 'Uopz Funções', ), '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', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($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().
Esta função não possui parâmetros.
Exemplo #1 uopz_get_exit_status() example
<?php
exit(123);
echo uopz_get_exit_status();?>
O exemplo acima produzirá:
123
OPcache optimizes away dead code after unconditional exit.