YP_ERR_STRING(3) 1 YP_ERR_STRING(3)
yp_err_string - Returns the error string associated with the given error code
SYNOPSIS
string yp_err_string (int $errorcode)
DESCRIPTION
Returns the error message associated with the given error code. Useful to indicate what exactly went wrong.
PARAMETERS
o $errorcode
- The error code.
RETURN VALUES
Returns the error message, as a string.
EXAMPLES
Example #1
Example for NIS errors
<?php
echo "Error: " . yp_err_string(yp_errno());
?>
SEE ALSO
yp_errno(3).
PHP Documentation Group YP_ERR_STRING(3)