Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #14976
| From | Jerry Stuckle <jstucklex@attglobal.net> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: 4 dimensional associative array access |
| Date | 2015-02-24 07:47 -0500 |
| Organization | A noiseless patient Spider |
| Message-ID | <mchrr9$n5j$1@dont-email.me> (permalink) |
| References | <f6d75dde-ec33-4c8e-8d77-b370152a72bd@googlegroups.com> <88f1c0b5-5819-486e-a11e-ef663f0b42e5@googlegroups.com> |
On 2/24/2015 2:07 AM, Adnan Shiekh wrote:
> yes, it's true data comes from another site and result return in $result,
>
>
> foreach($result as $key=>$value){
> foreach($value as $key1=>$value1){
> foreach($value1 as $key2=>$value2){
> foreach($value2 as $key3=>$value3){
> echo $value3['id'];
> }}}}
>
> that loop is not working any body tell me what's problem in that
>
It doesn't work because not every element of $result is an array. The
same with the other items.
You can only use foreach() with arrays.
P.S. Please learn how to properly respond to messages. Every response
you have made has been to the original message in the thread.
Additionally, please quote the appropriate text you're responding to.
Most of us use a real newsreader instead of google groups.
--
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================
Back to comp.lang.php | Previous | Next — Previous in thread | Find similar | Unroll 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