socket_send
socket_send
Sends data to a connected socket
**socket_send** Socket $socket string $data int $length int $flags
The function sends
bytes to the socket
from .
socket_send``length``socket``data
socket
A instance created with
or .
Socket``socket_create``socket_accept
dataA buffer containing the data that will be sent to the remote host.
length
The number of bytes that will be sent to the remote host from
.
data
flags
The value of can be any combination of
the following flags, joined with the binary OR ()
operator.
`flags``|`
returns the number of bytes sent, or false on error.
socket_send
socket_sendto