mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 08:58:56 +00:00
corrected imap_delete example
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@27392 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
f6c1844308
commit
251c6a3eea
1 changed files with 19 additions and 0 deletions
|
@ -427,6 +427,25 @@ imap_close($mbox);
|
|||
<function>imap_close</function> is called with the optional
|
||||
parameter CL_EXPUNGE.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title><function>Imap_delete</function> Beispiel</title>
|
||||
<programlisting role="php">
|
||||
$mbox = imap_open ("{your.imap.host}INBOX", "username", "password")
|
||||
|| die ("can't connect: " . imap_last_error());
|
||||
|
||||
$check = imap_mailboxmsginfo ($mbox);
|
||||
print "Messages before delete: " . $check->Nmsgs . "<br>\n" ;
|
||||
imap_delete ($mbox, 1);
|
||||
$check = imap_mailboxmsginfo ($mbox);
|
||||
print "Messages after delete: " . $check->Nmsgs . "<br>\n" ;
|
||||
imap_expunge ($mbox);
|
||||
$check = imap_mailboxmsginfo ($mbox);
|
||||
print "Messages after expunge: " . $check->Nmsgs . "<br>\n" ;
|
||||
imap_close ($mbox);
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
|
|
Loading…
Reference in a new issue