socket_set_option -- Sets socket options for the socket
Syntax
bool socket_set_option ( resource socket, int level, int optname, mixed optval )
The socket_set_option() function sets the option specified by the optname
parameter, at the protocol level specified by the level parameter, to the
value pointed to by the optval parameter for the socket
specified by the socket parameter. socket_set_option()
will return FALSE on failure.
The level parameter specifies the protocol level at
which the option resides. For example, to retrieve options at the socket level,
a level parameter of SOL_SOCKET would be used. Other
levels, such as TCP, can be used by specifying the protocol number of that level.
Protocol numbers can be found by using the getprotobyname() function.
The available socket options are the same as those for the socket_get_option() function.
Note:
This function used to be called socket_setopt() prior
to PHP 4.3.0
Php socket set option Function syntax tag
socket set option php code on this is provided for your study purpose, it will guide you to know how create and design a website using php. use it to practice and train your self online
Php socket set option syntax tutorial
php tutorial guide and code design are for easy learning and programming. The code practice section provided at the top is for practising of this syntax. Use the code section up to practice your php programming online. Learning php is very easy, all you need is to use the examples on this site and practice them to perfect your skills.