Forum und email

SAMConnection->unsubscribe()

(No version information available, might be only in CVS)

SAMConnection->unsubscribe() — 指定したトピックの購読を解除する

説明

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

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

パラメータ

subscriptionId

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

返り値

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

Example#1 購読の削除

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