Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #14974

Re: 4 dimensional associative array access

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!.POSTED!not-for-mail
From Jerry Stuckle <jstucklex@attglobal.net>
Newsgroups comp.lang.php
Subject Re: 4 dimensional associative array access
Date Mon, 23 Feb 2015 20:56:37 -0500
Organization A noiseless patient Spider
Lines 33
Message-ID <mcglne$om$1@dont-email.me> (permalink)
References <f6d75dde-ec33-4c8e-8d77-b370152a72bd@googlegroups.com> <mcglb6$uut$1@dont-email.me>
Mime-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Transfer-Encoding 7bit
Injection-Date Tue, 24 Feb 2015 01:55:58 +0000 (UTC)
Injection-Info mx02.eternal-september.org; posting-host="f0ea22b8e90f9304762d4b6484233470"; logging-data="790"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19y/w2+HT46SG4F87Wefw8jfC8BrDKe/AI="
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
In-Reply-To <mcglb6$uut$1@dont-email.me>
Cancel-Lock sha1:0MjR2ivARAogPE8hVtp1xYYjHkE=
Xref csiph.com comp.lang.php:14974

Show key headers only | View raw


On 2/23/2015 8:49 PM, Denis McMahon wrote:
> On Mon, 23 Feb 2015 00:09:40 -0800, Adnan Shiekh wrote:
> 
>> i have a question how to access 4 dimesional array efficiently in php
> 
>> <?php $json = '{
> 
> I've replied twice, don't know what happened to them.
> 
> 1) Your json is broken.
> 
> 2) If you want php to decode json into an associative array, you need to 
> use the correct arguments. See the php manual for json_decode.
> 
> 3) To access 'hello2' in your json (once you fix it) when it has been 
> converted into an associative array, use:
> 
> $result['output']['data'][1]['password']
> 

They showed up, Denis.  Maybe eternal-september isn't updating as
quickly as it should (I've seen this happen before).

Looking at his var_dump(), does have a valid associative array.  I
suspect it was sent from another site, and he's trying to duplicate the
information locally for testing/debugging.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

4 dimensional associative array access Adnan Shiekh <adnanshahi123@gmail.com> - 2015-02-23 00:09 -0800
  Re: 4 dimensional associative array access Jerry Stuckle <jstucklex@attglobal.net> - 2015-02-23 09:48 -0500
  Re: 4 dimensional associative array access Erwin Moller <erwinmollerusenet@xs4all.nl> - 2015-02-23 15:52 +0100
  Re: 4 dimensional associative array access Adnan Shiekh <adnanshahi123@gmail.com> - 2015-02-23 10:26 -0800
    Re: 4 dimensional associative array access Jerry Stuckle <jstucklex@attglobal.net> - 2015-02-23 15:44 -0500
  Re: 4 dimensional associative array access Adnan Shiekh <adnanshahi123@gmail.com> - 2015-02-23 10:39 -0800
  Re: 4 dimensional associative array access Adnan Shiekh <adnanshahi123@gmail.com> - 2015-02-23 13:31 -0800
  Re: 4 dimensional associative array access Denis McMahon <denismfmcmahon@gmail.com> - 2015-02-23 22:39 +0000
  Re: 4 dimensional associative array access Denis McMahon <denismfmcmahon@gmail.com> - 2015-02-24 00:13 +0000
  Re: 4 dimensional associative array access Denis McMahon <denismfmcmahon@gmail.com> - 2015-02-24 01:49 +0000
    Re: 4 dimensional associative array access Jerry Stuckle <jstucklex@attglobal.net> - 2015-02-23 20:56 -0500
  Re: 4 dimensional associative array access Adnan Shiekh <adnanshahi123@gmail.com> - 2015-02-23 23:07 -0800
    Re: 4 dimensional associative array access Jerry Stuckle <jstucklex@attglobal.net> - 2015-02-24 07:47 -0500

csiph-web