connection_aborted
Check whether client disconnected
&reftitle.description;
intconnection_aborted
Checks whether the client disconnected.
&reftitle.returnvalues;
Returns 1 if client disconnected, 0 otherwise.
&reftitle.seealso;
connection_status
ignore_user_abort
Connection Handling
for a complete description of connection handling in PHP.