You are here: Re: nested associative arrays « PHP Programming Language « IT news, forums, messages
Re: nested associative arrays

Posted by Andy Hassall on 06/10/07 11:34

On Sun, 10 Jun 2007 07:23:54 -0400, bill <nobody@spamcop.net> wrote:

>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.

http://uk.php.net/manual/en/language.types.array.php

--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация