|
PHP5中文手册
socket_strerror(PHP 4 >= 4.0.7, PHP 5) socket_strerror — Return a string describing a socket error 说明
string socket_strerror
( int $errno
)
socket_strerror() takes as its errno parameter a socket error code as returned by socket_last_error() and returns the corresponding explanatory text.
返回值Returns the error message associated with the errno parameter. 范例
Example#1 socket_strerror() example
<?php The expected output from the above example (assuming the script is not run with root privileges):
|