uopz_get_exit_status

(PECL uopz 5, PECL uopz 6)

uopz_get_exit_statusRetrieve the last set exit status

Opis

uopz_get_exit_status ( void ) : mixed

Retrieves the last set exit status, i.e. the value passed to exit().

Parametry

Ta funkcja nie posiada parametrów.

Zwracane wartości

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

Przykłady

Przykład #1 uopz_get_exit_status() example

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

Powyższy przykład wyświetli:

123

Notatki

Uwaga

OPcache optimizes away dead code after unconditional exit.

Zobacz też:

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top