AMQPConnection::__construct
AMQPExchange
AMQPConnection
PHP Manual

# AMQPConnection::isConnected

(PECL amqp >= Unknown)

AMQPConnection::isConnected — Determine if the AMQPConnection object is still connected to the broker.

### Description

public void AMQPConnection::isConnected ( void )

This method will check whether the connection to the AMQP broker is still valid. It does so by checking the return status of the last command.

### Liste de paramètres

Cette fonction ne contient aucun paramètre.

### Valeurs de retour

### Exemples

Exemple #1 AMQPConnection::isConnected() example

`<?php
/* Create a new connection */
$cnn = new AMQPConnection();
/* Check that connection is working */
if (!$cnn->isConnected()) {
die('The connection to the server was not established.');
}
?>`

AMQPConnection::__construct
AMQPExchange
AMQPConnection
PHP Manual