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

search for in the

Our source is open

The syntax highlighted source is automatically generated by PHP from the plaintext script. If you're interested in what's behind the several functions we used, you can always take a look at the source of the following files:

Of course, if you want to see the source of this page, we have it available. You can also browse the Git repository for this website on git.php.net.

Source of: /manual/fa/function.samconnection-disconnect.php

<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once
dirname(__FILE__) ."/toc/ref.sam.inc";
$setup = array (
 
'home' =>
  array (
   
0 => 'index.php',
   
1 => 'PHP Manual',
  ),
 
'head' =>
  array (
   
0 => 'UTF-8',
   
1 => 'fa',
  ),
 
'this' =>
  array (
   
0 => 'function.samconnection-disconnect.php',
   
1 => 'SAMConnection-&gt;disconnect',
  ),
 
'up' =>
  array (
   
0 => 'ref.sam.php',
   
1 => 'SAM Functions',
  ),
 
'prev' =>
  array (
   
0 => 'function.samconnection-constructor.php',
   
1 => 'SAMConnection-&gt;__construct',
  ),
 
'next' =>
  array (
   
0 => 'function.samconnection-errno.php',
   
1 => 'SAMConnection-&gt;errno',
  ),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);

manual_header();
?>
<div id="function.samconnection-disconnect" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">SAMConnection->disconnect</h1>
  <p class="verinfo">(PECL sam &gt;= 0.1.0)</p><p class="refpurpose"><span class="refname">SAMConnection-&gt;disconnect</span> &mdash; <span class="dc-title">
   Disconnects from a Messaging Server
  </span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.samconnection-disconnect-description">
  <h3 class="title">Description</h3>
  <div class="classsynopsis">
   <div class="ooclass"></div>
   <div class="methodsynopsis dc-description">
    <span class="type">bool</span> <span class="methodname"><b>SAMConnection::disconnect</b></span> ( <span class="methodparam">void</span>
    )</div>

  </div>
  <p class="para">
   Calling the &quot;disconnect&quot; method on a SAMConnection object disconnects the
   PHP script from a messaging server. No messages can be sent or received
   after a connection has been disconnected.
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.samconnection-disconnect-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns <b><tt>TRUE</tt></b> on success or <b><tt>FALSE</tt></b> on failure.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.samconnection-disconnect-examples">
  <h3 class="title">Examples</h3>
  <p class="para">
   <div class="example" id="example-3716">
    <p><b>Example #1 Disconnecting from a Messaging Server</b></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /><br />$conn</span><span style="color: #007700">-&gt;</span><span style="color: #0000BB">disconnect</span><span style="color: #007700">();<br /><br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
    </div>

   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.samconnection-disconnect-seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><a href="function.samconnection-isconnected.php" class="xref">SAMConnection-&gt;isConnected</a></li>
    <li class="member"><a href="function.samconnection-connect.php" class="xref">SAMConnection-&gt;connect</a></li>
   </ul>
  </p>
 </div>


</div><?php manual_footer(); ?>
 
show source | credits | sitemap | contact | advertising | mirror sites