connection_aborted
PHP function
Edit on GitHub ✎
(PHP 4, PHP 5, PHP 7, PHP 8)
Check whether client disconnected
Description
connection_aborted(): int
Checks whether the client disconnected.
Parameters Parameters
Return Values
Returns 1 if client disconnected, 0 otherwise.
See Also
connection_status()ignore_user_abort()- Connection Handling for a complete description of connection handling in PHP.