AMQPConnection
PHP Manual

AMQPConnection::getPort

(PECL amqp >= Unknown)

AMQPConnection::getPortGet the configured port

说明

public int AMQPConnection::getPort ( void )

Return the port configured for this AMQPConnection object.

参数

此函数没有参数。

返回值

The configured port as an integer.


AMQPConnection
PHP Manual