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!

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.