You are here: Re: Array: If i'm in the child array then how I tell the parent's key name.. « PHP « IT news, forums, messages
Re: Array: If i'm in the child array then how I tell the parent's key name..

Posted by "M. Sokolewicz" on 10/01/05 00:49

Let me reply with a question first :) how do you get *to* the child? ;)
post some code so we know. In 99.99% of the cases, the way you get to
the child includes a way to find out the parent key (usually you
foreach() to it, or something similair).

- tul

Scott Fletcher wrote:
> Suppose that I'm in a child array and I wanna know how do I tell what key is
> the parent's level, one level up...
>
> For example,
>
> --snip--
> $arr['ABC']['DEF'];
> --snip--
>
> Let's say the child is "DEF" then the key name one level up would be "ABC".
> How do I determine the one level up?
>
> Thanks...

 

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

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