Below is the example of the array that I have.
Array (
[952] => Array ( [Date] => 2016-06-23 01:55:17 [SValues] => Array ( [total] => 1 [Name] => Name [OverAge] => No))
[91] => Array ( [Date] => 2016-06-23 01:55:17 [SValues] => Array ( [total] => 1 [Name] => Name [OverAge] => No))
[83] => Array ( [Date] => 2016-06-23 01:55:17 [SValues] => Array ( [total] => 1 [Name] => Name [OverAge] => No)))
And then, I put this array inside the foreach loop.
foreach($the-main-array as $item)
{
//I want to get the key of the item here (952,91,83)
}
So how can I get the key of the item inside the loop?
Please help me. Thanks in advance.