Home > PHP > Function > Sockets > socket_clear_error()

socket_clear_error()

socket_clear_error - Clears the error on the socket or the last error code

Syntax

socket_clear_error (resource $socket)

Arguments

  • socket - A valid socket resource created with socket_create().

Description

This function clears the error code on the given socket or the global last socket error if no socket is specified.

Version

PHP 4.2.0, 5

Return value

No value is returned.