connection_aborted

Check whether client disconnected

Syntax

connection_aborted ( void ) : int

Return

Returns 1 if client disconnected, 0 otherwise.

Examples

<?

if (connection_aborted()) {
    echo "disconnected";
} else {
    echo "connected";
}

?>
connected

__halt_compiler

connection_status

constant

define

defined

die

eval

exit

highlight_file

highlight_string

hrtime

ignore_user_abort

pack

php_strip_whitespace

show_source

sleep

sys_getloadavg

time_nanosleep

time_sleep_until

uniqid

unpack

usleep

PHP

Home Menu