write

(4.0.2 - 4.0.6 only)

write -- Write to a socket

Description

int write (resource socket_des, string &buffer, int length)

Warning

This function is EXPERIMENTAL. That means, that the behaviour of this function, this function name, in concreto ANYTHING documented here can change in a future release of PHP WITHOUT NOTICE. Be warned, and use this function at your own risk.

The function write() writes to the socket socket_des from &buffer the number of bytes set by length.

See also accept_connect(), bind(), connect(), listen(), read(), strerror(), and socket_get_status().