(PHP 8 >= 8.3.0, PHP 8)
socket_atmark — Determines whether socket is at out-of-band mark
socket_atmark(Socket $socket): bool
Determines whether socket is at out-of-band mark.
socketA Socket instance created with socket_create().
Example #1 Using socket_atmark() to set the source address
<?php // Create a new socket $sock = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); var_dump(socket_atmark($sock)); // Close socket_close($sock); ?>
© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/function.socket-atmark.php