peb_close

peb_closeClose Erlang node connection

Description

bool peb_close ([ resource $link_identifier ] )

peb_close() closes the non-persistent connection to the Erlang node that's associated with the specified link identifier. If link_identifier isn't specified, the last opened link is used.

Parameters

link_identifier

The Erlang node connection. If the link identifier is not specified, the last link opened by peb_connect() is assumed.

Return Values

Returns TRUE on success or FALSE on failure.

Examples

Example #1 peb_close() example

<?php
$link 
peb_connect('node@host.domain''secret_cookie');
if (!
$link) {
    die(
'Could not connect: ' peb_error());
}
echo 
'Connected successfully';
peb_close($link);
?>

The above example will output:

Connected successfully

See Also