I have an array with the following format
Array
(
[messages] => Array
(
[42321316] => 44556232
)
[text] => test message
[count] => 1
)
I am trying to get the number '42321316' using following code
foreach($results as $k=>$y)
{
echo $results[$k];
}
But it prints the values instead of getting the key of second array element.