Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

connection_aborted

Description

The connection_aborted of Miscellaneous for PHP check whether client disconnected.

Syntax

connection_aborted ( void ) : int

Return

Returns 1 if client disconnected, 0 otherwise.

Examples

1

<?

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

?>
connected
HomeMenu