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:
Hartmut Holzgraefe 2000-06-30 07:44:26 +00:00
parent f6c1844308
commit 251c6a3eea

View file

@ -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 . "&lt;br>\n" ;
imap_delete ($mbox, 1);
$check = imap_mailboxmsginfo ($mbox);
print "Messages after delete: " . $check->Nmsgs . "&lt;br>\n" ;
imap_expunge ($mbox);
$check = imap_mailboxmsginfo ($mbox);
print "Messages after expunge: " . $check->Nmsgs . "&lt;br>\n" ;
imap_close ($mbox);
</programlisting>
</example>
</para>
</refsect1>
</refentry>