peb_close — Close Erlang node connection
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.
The Erlang node connection. If the link identifier is not specified, the last link opened by peb_connect() is assumed.
Returns TRUE on success or FALSE on failure.
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