|
PHP5中文手册
socket_sendto(PHP 4 >= 4.0.7, PHP 5) socket_sendto — Sends a message to a socket, whether it is connected or not 说明
int socket_sendto
( resource $socket
, string $buf
, int $len
, int $flags
, string $addr
[, int $port
] )
The function socket_sendto() sends len bytes from buf through the socket socket to the port at the address addr . 参数
返回值socket_sendto() returns the number of bytes sent to the remote host or -1 if an error occured. 范例
Example#1 socket_sendto() Example
<?php |