AMQPQueue
PHP Manual

AMQPQueue::purge

(PECL amqp >= Unknown)

AMQPQueue::purgePurge the contents of a queue

说明

public bool AMQPQueue::purge ( void )

Purge the contents of a queue.

参数

此函数没有参数。

错误/异常

Throws AMQPChannelException if the channel is not open.

Throws AMQPConnectionException if the connection to the broker was lost.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE.


AMQPQueue
PHP Manual