08-24-2004
Ahem. What is the point of the useless poll at the top of this thread?
7 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
i want test perl program with indigo perl before i transfer it to the web, where i could get a free one software (2 Replies)
Discussion started by: zeoous
2 Replies
2. UNIX for Dummies Questions & Answers
Hi,
Can anyone please suggest me a URL where I can download some unix OS free of cost??
Thanks,
Kumar (4 Replies)
Discussion started by: yelamarthi
4 Replies
3. Linux
Where can I download the original Linux code for free? (1 Reply)
Discussion started by: Super Apollo
1 Replies
4. UNIX for Dummies Questions & Answers
Hi Folks,
I was looking around some web sites and found out that there is/was this free databse for Unix called RDB by Walter Hobbs, which uses ASCII text files for its databases and uses Unix commands to manipulate them.
Unfortunately, I can no longer access the ftp site mentioned on the web... (0 Replies)
Discussion started by: rooseter
0 Replies
5. OS X (Apple)
Does Any body knows where can I get free download for mac OS. Any version is OK.:o (4 Replies)
Discussion started by: sackNumchai
4 Replies
6. UNIX for Dummies Questions & Answers
Hello, I am not sure where to post this questions...
I have Windows XP in my home computer. I need to install Linux on
my home computer for learning purpose. Can one please recommend
any free download link to download free linux...
Any help is appreciated...
Thank you... (1 Reply)
Discussion started by: govindts
1 Replies
7. UNIX for Dummies Questions & Answers
Could any one tell me where I can download Unix, linux,solaris and red hat OS (4 Replies)
Discussion started by: prasadg034
4 Replies
LEARN ABOUT PHP
imap_rfc822_parse_adrlist
IMAP_RFC822_PARSE_ADRLIST(3) 1 IMAP_RFC822_PARSE_ADRLIST(3)
imap_rfc822_parse_adrlist - Parses an address string
SYNOPSIS
array imap_rfc822_parse_adrlist (string $address, string $default_host)
DESCRIPTION
Parses the address string as defined in RFC2822 and for each address.
PARAMETERS
o $address
- A string containing addresses
o $default_host
- The default host name
RETURN VALUES
Returns an array of objects. The objects properties are:
o mailbox - the mailbox name (username)
o host - the host name
o personal - the personal name
o adl - at domain source route
EXAMPLES
Example #1
imap_rfc822_parse_adrlist(3) example
<?php
$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
");
}
foreach ($address_array as $id => $val) {
echo "# $id
";
echo " mailbox : " . $val->mailbox . "
";
echo " host : " . $val->host . "
";
echo " personal: " . $val->personal . "
";
echo " adl : " . $val->adl . "
";
}
?>
The above example will output:
# 0
mailbox : doe
host : example.com
personal: Joe Doe
adl :
# 1
mailbox : postmaster
host : example.com
personal:
adl :
# 2
mailbox : root
host : example.com
personal:
adl :
SEE ALSO
imap_rfc822_parse_headers(3).
PHP Documentation Group IMAP_RFC822_PARSE_ADRLIST(3)