|
Posted by bill on 06/10/07 11:23
The IMAP_headers function returns an associative array.
for example:
$head = imap_header($in, ($index+1));
echo " <br />header:subject:" . $head->subject;
works fine,
but $head->from returns an array
[0]
[personal]
[adl]
[mailbox]
[host]
what is the cleanest way of accessing the internally nested
stuff, personal, mailbox, host ?
I can do it in multiple lines of code, but I am sure there is a
proper syntax to get each in one line.
a ref to a tutorial on arrays would be appreciated, the php.net
array page is just an index to the functions.
thanks,
bill
Navigation:
[Reply to this message]
|