public function unbind($exchange_name, $routing_key = null, array $arguments = array()) {

        if($routing_key === null)
            $routing_key = '';

        $bind_arguments = new AMQPTable($arguments);

        try {
            $this->channel->_getChannel()->queue_unbind($this->name, $exchange_name, $routing_key, $bind_arguments);
        } catch (AMQPRuntimeException $e) {
            throw new AMQPConnectionException($e->getMessage(), $e->getCode(), $e->getPrevious());
        } catch (Exception $e) {
            return false;
        }

        return true;
    }
public function unbind($exchange_name, $routing_key = null, array $arguments = array()) {

        if($routing_key === null)
            $routing_key = '';

        $bind_arguments = new AMQPTable($arguments);

        try {
            $this->channel->_getChannel()->queue_unbind($this->name, $exchange_name, $routing_key, $bind_arguments);
        } catch (AMQPRuntimeException $e) {
            throw new AMQPConnectionException($e->getMessage(), $e->getCode(), $e->getPrevious());
        } catch (Exception $e) {
            return false;
        }

        return true;
    }
public function unbind ( $ exchange_name , $ routing_key = null , array $ arguments = array ( ) ) { if ( $ routing_key === null ) $ routing_key = '' ; $ bind_arguments = new AMQPTable ( $ arguments ) ; try { $ this -> channel -> _getChannel ( ) -> queue_unbind ( $ this -> name , $ exchange_name , $ routing_key , $ bind_arguments ) ; } catch ( AMQPRuntimeException $ e ) { throw new AMQPConnectionException ( $ e -> getMessage ( ) , $ e -> getCode ( ) , $ e -> getPrevious ( ) ) ; } catch ( Exception $ e ) { return false ; } return true ; }
Remove a routing key binding on an exchange from the given queue.

@param string $exchange_name The name of the exchange on which the
queue is bound.
@param string $routing_key The binding routing key used by the
queue.
@param array $arguments Additional binding arguments.

@throws AMQPChannelException    If the channel is not open.
@throws AMQPConnectionException If the connection to the broker was lost.

@return boolean
Remove a routing key binding on an exchange from the given queue .