(PECL stomp >= 0.1.0)
Registers to listen to a given destination
public bool Stomp::subscribe ( string $destination [, array $headers ] )
Object oriented style (method):
Procedural style:
bool stomp_subscribe ( resource
$link , string $destination [, array $headers ] )Registers to listen to a given destination.
Parameters:
link
Procedural style only: The stomp link identifier returned by stomp_connect().
destination
Destination to subscribe to.
headers
Associative array containing the additional headers (example: receipt).
Returns:
Returns TRUE on success or FALSE on failure.
Please login to continue.