⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 function.imap-check.html

📁 php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Check current mailbox</title>  <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.imap-bodystruct.html">imap_bodystruct</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.imap-clearflag-full.html">imap_clearflag_full</a></div> <div class="up"><a href="ref.imap.html">IMAP Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.imap-check" class="refentry"> <div class="refnamediv">  <h1 class="refname">imap_check</h1>  <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">imap_check</span> &mdash; <span class="dc-title">Check current mailbox</span></p> </div> <div class="refsect1 description">  <h3 class="title">Description</h3>  <div class="methodsynopsis dc-description">   <span class="type">object</span> <span class="methodname"><b><b>imap_check</b></b></span>    ( <span class="methodparam"><span class="type">resource</span> <tt class="parameter">$imap_stream</tt></span>   )</div>  <p class="para rdfs-comment">   Checks information about the current mailbox.   </p> </div> <div class="refsect1 parameters">  <h3 class="title">Parameters</h3>  <p class="para">   <dl>    <dt><span class="term"><i><tt class="parameter">imap_stream</tt></i></span><dd><p class="para">An IMAP stream returned by <a href="function.imap-open.html" class="function">imap_open()</a>.</p></dd></dt>   </dl>  </p> </div> <div class="refsect1 returnvalues">  <h3 class="title">Return Values</h3>  <p class="para">   Returns the information in an object with following properties:   <ul class="itemizedlist">    <li class="listitem">     <span class="simpara">      Date - current system time formatted according to <a href="http://www.faqs.org/rfcs/rfc2822" class="link external">&raquo; RFC2822</a>     </span>    </li>    <li class="listitem">     <span class="simpara">      Driver - protocol used to access this mailbox: POP3, IMAP, NNTP     </span>    </li>    <li class="listitem">     <span class="simpara">      Mailbox - the mailbox name     </span>    </li>    <li class="listitem">     <span class="simpara">      Nmsgs - number of messages in the mailbox     </span>    </li>    <li class="listitem">     <span class="simpara">      Recent - number of recent messages in the mailbox     </span>    </li>   </ul>  </p>  <p class="para">      Returns <b><tt>FALSE</tt></b> on failure.  </p> </div> <div class="refsect1 examples">  <h3 class="title">Examples</h3>  <p class="para">   <div class="example">    <p><b>Example #1 <b>imap_check()</b> example</b></p>    <div class="example-contents"><div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /><br />$imap_obj&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">imap_check</span><span style="color: #007700">(</span><span style="color: #0000BB">$imap_stream</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$imap_obj</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>    </div>    <div class="example-contents"><p>The above example will output something similar to:</p></div>    <div class="example-contents"><pre><div class="cdata"><pre>object(stdClass)(5) {  [&quot;Date&quot;]=&gt;  string(37) &quot;Wed, 10 Dec 2003 17:56:54 +0100 (CET)&quot;  [&quot;Driver&quot;]=&gt;  string(4) &quot;imap&quot;  [&quot;Mailbox&quot;]=&gt;  string(54)  &quot;{www.example.com:143/imap/user=&quot;foo@example.com&quot;}INBOX&quot;  [&quot;Nmsgs&quot;]=&gt;  int(1)  [&quot;Recent&quot;]=&gt;  int(0)}</pre></div>    </pre></div>   </div>  </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.imap-bodystruct.html">imap_bodystruct</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.imap-clearflag-full.html">imap_clearflag_full</a></div> <div class="up"><a href="ref.imap.html">IMAP Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -