mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
be rfc conform and use example.com
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@143610 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
df8958d805
commit
47c863b37d
1 changed files with 3 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.5 $ -->
|
||||
<!-- $Revision: 1.6 $ -->
|
||||
<!-- splitted from ./en/functions/imap.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.imap-rfc822-parse-adrlist">
|
||||
<refnamediv>
|
||||
|
@ -49,8 +49,8 @@
|
|||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
$address_string = "Hartmut Holzgraefe <hartmut@cvs.php.net>, postmaster@somedomain.net, root";
|
||||
$address_array = imap_rfc822_parse_adrlist($address_string,"somedomain.net");
|
||||
$address_string = "Joe Doe <doe@example.com>, postmaster@example.com, root";
|
||||
$address_array = imap_rfc822_parse_adrlist($address_string,"example.com");
|
||||
if(!is_array($address_array) || count($address_array) < 1) die("something is wrong\n");
|
||||
|
||||
foreach($address_array as $val) {
|
||||
|
|
Loading…
Reference in a new issue