<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.stomp.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'stomp.unsubscribe.php',
    1 => 'Stomp::unsubscribe',
    2 => 'Removes an existing subscription',
  ),
  'up' => 
  array (
    0 => 'class.stomp.php',
    1 => 'Stomp',
  ),
  'prev' => 
  array (
    0 => 'stomp.subscribe.php',
    1 => 'Stomp::subscribe',
  ),
  'next' => 
  array (
    0 => 'class.stompframe.php',
    1 => 'StompFrame',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/stomp/stomp/unsubscribe.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="stomp.unsubscribe" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">Stomp::unsubscribe</h1>
  <h1 class="refname">stomp_unsubscribe</h1>
  <p class="verinfo">(PECL stomp &gt;= 0.1.0)</p><p class="refpurpose"><span class="refname">Stomp::unsubscribe</span> -- <span class="refname">stomp_unsubscribe</span> &mdash; <span class="dc-title">Removes an existing subscription</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-stomp.unsubscribe-description">
  <h3 class="title">说明</h3>
  <p class="simpara">面向对象风格 (method):</p>
   <div class="methodsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>Stomp::unsubscribe</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$destination</code></span>, <span class="methodparam"><span class="type"><a href="language.types.array.php" class="type array">array</a></span> <code class="parameter">$headers</code><span class="initializer"> = ?</span></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="simpara">过程化风格:</p>
  <div class="methodsynopsis dc-description"><span class="methodname"><strong>stomp_unsubscribe</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$link</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$destination</code></span>, <span class="methodparam"><span class="type"><a href="language.types.array.php" class="type array">array</a></span> <code class="parameter">$headers</code><span class="initializer"> = ?</span></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="simpara">
   Removes an existing subscription.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-stomp.unsubscribe-parameters">
  <h3 class="title">参数</h3>
  <dl>
   <dt><code class="parameter">link</code></dt><dd><p class="para">仅对过程化样式：由 <span class="function"><a href="stomp.construct.php" class="function">stomp_connect()</a></span> 返回的 stomp 连接标识符。</p></dd>
   
    <dt><code class="parameter">destination</code></dt>
    <dd>
     <span class="simpara">
      Subscription to remove.
     </span>
    </dd>
   
   <dt><code class="parameter">headers</code></dt><dd><p class="para">关联数组包含附加的头信息（例如： receipt）。</p></dd>
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-stomp.unsubscribe-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="simpara">
   成功时返回 <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong>， 或者在失败时返回 <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>。
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-stomp.unsubscribe-examples">
  <h3 class="title">示例</h3>
  <p class="simpara">
   See <span class="function"><a href="stomp.ack.php" class="function">stomp_ack()</a></span>.
  </p>
 </div>


 <div class="refsect1 notes" id="refsect1-stomp.unsubscribe-notes">
  <h3 class="title">注释</h3>
  <div class="tip"><strong class="tip">小技巧</strong><p class="simpara">Stomp is inherently asynchronous. Synchronous communication can be implemented adding a receipt header. This will cause methods to not return anything until the server has acknowledged receipt of the message or until read timeout was reached.</p></div>
 </div>


</div><?php manual_footer($setup); ?>