PhpRiot
Become Zend Certified

Prepare for the ZCE exam using our quizzes (web or iPad/iPhone). More info...


When you're ready get 7.5% off your exam voucher using voucher CJQNOV23 at the Zend Store

AMQPExchange::setType

(PECL amqp >= Unknown)

AMQPExchange::setTypeSet the type of the exchange

Description

public string AMQPExchange::setType ( string $exchange_type )

Set the type of the exchange. This can be any of AMQP_EX_TYPE_DIRECT, AMQP_EX_TYPE_FANOUT, AMQP_EX_TYPE_HEADER or AMQP_EX_TYPE_TOPIC.

Warning

This function is currently not documented; only its argument list is available.

Parameters

exchange_type

The type of exchange as a string.

Return Values

Returns TRUE on success or FALSE on failure.

PHP Manual