finding key values in array

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
In my 2d array, I have ten columns with keys.
To determine which set of keys to print out, I have the link set up to
transer the year and the rank.


does nothing.

How do I properly go about retrrieving a particular key value?
With only these paramters to work with?

Re: finding key values in array

On Wed, 04 Dec 2013 00:26:34 -0500, richard wrote:

Quoted text here. Click to load it

It assigns the value in $array[$year][$rank] to the variable $find

However, to do so it does require that $year and $rank fall within the  
indices of relevant arrays, ie:

That $year is a valid index in $array, and that $rank is a valid index in  

Quoted text here. Click to load it

Try dumping $array, $year and $rank, and checking that the above  
described requisite conditions are being met.

Denis McMahon,

Site Timeline