downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

SAMMessage::body> <SAMConnection::subscribe
[edit] Last updated: Fri, 25 May 2012

view this page in

SAMConnection::unsubscribe

(PECL sam >= 0.1.0)

SAMConnection::unsubscribe 指定したトピックの購読を解除する

説明

bool SAMConnection::unsubscribe ( string $subscriptionId [, string $targetTopic ] )

"unsubscribe" メソッドを使用して、指定したトピックの購読を解除します。

パラメータ

subscriptionId

subscribe メソッドによって返された、既存の購読の識別子。

返り値

このメソッドは、エラーが発生した場合に FALSE を返します。

例1 購読の削除

<?php
if (!$conn->unsubscribe($subid)) {
    
// 購読解除に失敗しました!
    
echo "Unsubscribe failed ($conn->errno$conn->error";
}
?>



add a note add a note User Contributed Notes SAMConnection::unsubscribe
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites