Jump to content

Retrieving array values out of a multidimensional array..


mkosmosports

Recommended Posts

Hey

I have a multidimensional array.
Array ( [0] => Array ( [dt] => 200701 [tid] => 46 [gid] => 3 )
[1] => Array ( [dt] => 200611 [tid] => 19 [gid] => 1 )
[2] => Array ( [dt] => 200611 [tid] => 79 [gid] => 5 )
[3] => Array ( [dt] => 200610 [tid] => 20 [gid] => 1 )
[4] => Array ( [dt] => 200609 [tid] => 14 [gid] => 1 )
[5] => Array ( [dt] => 200609 [tid] => 253 [gid] => 1 )
[6] => Array ( [dt] => 200609 [tid] => 46 [gid] => 3 )
[7] => Array ( [dt] => 200609 [tid] => 20 [gid] => 1 )
[8] => Array ( [dt] => 200609 [tid] => 16 [gid] => 1 )
[9] => Array ( [dt] => 200609 [tid] => 21 [gid] => 2 )
[10] => Array ( [dt] => 200609 [tid] => 62 [gid] => 5 )

How can I retrieve [tid] and [gid] values based on what the [dt] value is?
Ie. I want to find out what [tid] and [gid] is if [dt] = 200609.....

This must be a simple thing , Im just not understanding the structure of the multidimensional array....

Thanks for your help!
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.