(PECL sam >= 0.1.0)
Cancel a subscription to a specified topic.
bool SAMConnection::unsubscribe ( string $subscriptionId [, string $targetTopic ] )
The "unsubscribe" method is used to delete an existing subscription to a specified topic.
Parameters:
subscriptionId
The identifier of an existing subscription as returned by a call to the subscribe method.
Returns:
This method returns FALSE
if an error occurs.
Examples:
Delete a subscription
1 2 3 4 5 6 | <?php if (! $conn ->unsubscribe( $subid )) { // The unsubscribe failed! echo "Unsubscribe failed ($conn->errno) $conn->error" ; } ?> |
See also:
Please login to continue.