Yes...well that is the question 🙂
Someone else suggested:
print "{$MyArray['third']['col2']}</br>";
$keys = array_keys($MyArray);
print "{$MyArray[$keys[2]]['col2']}</br>";
Which is clever! And works.
But, I am wondering about the processing time in that solution. A direct lookup into an array using indexes $MyArray[$Row][$Col] versus generating an entire list of keys, direct index into it and then again into the main array. The arrays could be thousands of rows and I do alot of indexing into them.
Any thoughts?
So far, the array_keys approach is the only one (hence the best one :p) I've seen so far.
Thank you for your considerations.