downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

AMQPConnection::getHost> <AMQPConnection::__construct
[edit] Last updated: Fri, 17 May 2013

view this page in

AMQPConnection::disconnect

(PECL amqp >= Unknown)

AMQPConnection::disconnectCloses the connection with the AMQP broker.

Beschreibung

public bool AMQPConnection::disconnect ( void )

This method will close an open connection with the AMQP broker.

Parameter-Liste

void

Rückgabewerte

Returns true if connection was successfully closed, false otherwise.

Beispiele

Beispiel #1 AMQPConnection::disconnect() example

<?php

/* Create a new connection */
$cnn = new AMQPConnection();

// set the login details
$cnn->setLogin('mylogin');
$cnn->setPassword('mypass');

if (!
$cnn->connect()) {
    throw new 
Exception('Could not connect');
}

// do something interesting

if (!$cnn->disconnect()) {
    throw new 
Exception('Could not disconnect');
}

?>



add a note add a note User Contributed Notes AMQPConnection::disconnect - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites