Re: associative arrays

[email protected] (JEFFRY KILLEN)
Newsgroups php.general
Message-ID <[email protected]>

> On Nov 2, 2021, at 11:25 AM, Christoph M. Becker <[email protected]> wrote:
> 
> On 02.11.2021 at 07:24, JEFFRY KILLEN wrote:
>> Hello:
>> 
>> I have been programming php and javascript for some time.
>> I have not come on a way to navigate upward in javascript
>> objects (it does not have associative arrays but objects are
>> often used in the same way associative arrays are used)
>> 
>> To create a metaphor: it is like a squirrel jumps from another tree and lands on a branch. It
>> can find its way to the trunk and to the ground.
> 
> The squirrel doesn't ask the branch how to get to the trunk or to the
> ground, though.  Instead, it remembers its way so far. :)
> 
> --
> Christoph M. Becker

Yes, the squirrel doesn't ask the branch, It looks down the branch to the parent branch and
follows that path if it can't already see the ground. Even if it can see the ground it follows
the successive parent branches to the main trunk, or to other branches.

JK
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.