<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.imap.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'uk',
  ),
  'this' => 
  array (
    0 => 'function.imap-lsub.php',
    1 => 'imap_lsub',
    2 => 'List all the subscribed mailboxes',
  ),
  'up' => 
  array (
    0 => 'ref.imap.php',
    1 => 'IMAP Функції',
  ),
  'prev' => 
  array (
    0 => 'function.imap-listsubscribed.php',
    1 => 'imap_listsubscribed',
  ),
  'next' => 
  array (
    0 => 'function.imap-mail.php',
    1 => 'imap_mail',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/imap/functions/imap-lsub.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.imap-lsub" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">imap_lsub</h1>
  <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">imap_lsub</span> &mdash; <span class="dc-title">List all the subscribed mailboxes</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.imap-lsub-description">
  <h3 class="title">Опис</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>imap_lsub</strong></span>(<span class="methodparam"><span class="type"><a href="class.imap-connection.php" class="type IMAP\Connection">IMAP\Connection</a></span> <code class="parameter">$imap</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$reference</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$pattern</code></span>): <span class="type"><span class="type"><a href="language.types.array.php" class="type array">array</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>

  <p class="para rdfs-comment">
   Gets an array of all the mailboxes that you have subscribed.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.imap-lsub-parameters">
  <h3 class="title">Параметри</h3>
  <p class="para">
   <dl>
    <dt>
<code class="parameter">imap</code></dt><dd><p class="para">Примірник
<span class="classname"><a href="class.imap-connection.php" class="classname">IMAP\Connection</a></span>.</p></dd>
    
     <dt><code class="parameter">reference</code></dt>
     <dd>
      <p class="para">
       <code class="parameter">reference</code> should normally be just the server 
       specification as described in <span class="function"><a href="function.imap-open.php" class="function">imap_open()</a></span>
      </p>
      <div class="warning"><strong class="warning">Увага</strong><p class="simpara">
Передавати у цей параметр неперевірені дані <em>небезпечно</em>,
якщо увімкнено <a href="imap.configuration.php#ini.imap.enable-insecure-rsh" class="link">imap.enable_insecure_rsh</a>.
</p></div>
     </dd>
    
    
     <dt><code class="parameter">pattern</code></dt>
     <dd>
      <p class="para">Визначає, де в ієрархії поштових
скриньок почати пошук.</p><p class="para">У
значенні параметру <code class="parameter">pattern</code> можна використовувати два
спеціальні символи: &quot;<code class="literal">*</code>&quot; і
&quot;<code class="literal">%</code>&quot;. &quot;<code class="literal">*</code>&quot; —
повернути всі поштові скриньки. Якщо значення <code class="parameter">pattern</code>
дорівнюватиме &quot;<code class="literal">*</code>&quot;, то повернеться список усієї
ієрархії поштових скриньок. &quot;<code class="literal">%</code>&quot; — повернути тільки
поточний рівень. Якщо значення <code class="parameter">pattern</code>
дорівнюватиме &quot;<code class="literal">%</code>&quot;, то повернеться тільки верхній рівень
поштових скриньок; &quot;<code class="literal">~/mail/%</code>&quot; на
<code class="literal">UW_IMAPD</code> поверне усі поштові скриньки в теці
<var class="filename">~/mail</var>, крім тих, що в її підтеках.</p>
     </dd>
    
   </dl>
  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.imap-lsub-returnvalues">
  <h3 class="title">Значення, що повертаються</h3>
  <p class="para">
   Returns an array of all the subscribed mailboxes,  або <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> в разі помилки.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.imap-lsub-changelog">
  <h3 class="title">Журнал змін</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Версія</th>
      <th>Опис</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
 <td>8.1.0</td>
 <td>
  Тепер параметр <code class="parameter">imap</code> має бути примірником
  <span class="classname"><a href="class.imap-connection.php" class="classname">IMAP\Connection</a></span>; раніше очікувався дійсний <a href="language.types.resource.php" class="link">resource</a>
  <code class="literal">imap</code>.
 </td>
</tr>

    </tbody>
   
  </table>

 </div>

 
 <div class="refsect1 seealso" id="refsect1-function.imap-lsub-seealso">
  <h3 class="title">Прогляньте також</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.imap-list.php" class="function" rel="rdfs-seeAlso">imap_list()</a> - Read the list of mailboxes</span></li>
    <li><span class="function"><a href="function.imap-getmailboxes.php" class="function" rel="rdfs-seeAlso">imap_getmailboxes()</a> - Read the list of mailboxes, returning detailed information on each one</span></li>
   </ul>
  </p>
 </div>

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