Re: associative arrays
| From: | JEFFRY KILLEN | Date: | Tue, 02 Nov 2021 19:48:00 +0000 |
| Subject: | Re: associative arrays | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-327810@lists.php.net to get a copy of this message | ||
> On Nov 2, 2021, at 11:25 AM, Christoph M. Becker <cmbecker69@gmx.de> 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