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

PHP

Home Menu