connection_status

Returns connection status bitfield

Syntax

connection_status ( void ) : int

Return

Returns the connection status bitfield, which can be used against the CONNECTION_XXX constants to determine the connection status.

Examples

<?

$status = connection_status();
echo $status . " = ";

switch ($status) {
    case CONNECTION_NORMAL:
        echo "normal";
        break;
    case CONNECTION_ABORTED:
        echo "aborted";
        break;
    case CONNECTION_TIMEOUT:
        echo "timeout";
        break;
}

?>
0 = normal

__halt_compiler

connection_aborted

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