JavaScript Editor Javascript debugger     Website design 


Returns the error from previous IRCG operation (PHP 4 >= 4.0.7, PHP 5 <= 5.0.5)
array ircg_fetch_error_msg ( resource connection )

ircg_fetch_error_msg() returns the error from a failed connection.



A connection resource handle returned by ircg_pconnect().

Return Values

Returns an indexed array where the error code is stored in first element, and the error text in second.

The error code is equivalent to IRC reply codes as defined by RFC 2812.


Example 1093. ircg_fetch_error_msg() example

if (!ircg_join ($id, "#php")) {
$error = ircg_fetch_error_msg($id);
"Can't join channel #php. Error code:
         $error[0] Description: $error[1]"