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

socket_atmark

Description

The socket_atmark of Sockets for PHP determines whether socket is at out-of-band mark.

Syntax

socket_atmark(
    Socket $socket
): bool

Parameters

socket

A Socket instance created with socket_create().

Return

Returns true on success or false on failure.

Examples

1 · socket

<?

$domain = AF_INET;
$type = SOCK_STREAM;
$protocol = SOL_TCP;

$socket = socket_create($domain, $type, $protocol);

    $return = socket_atmark($socket);

    var_export($return);

socket_close($socket);

?>
false
HomeMenu