I'm sorry if this is a basic question but I'm just having trouble getting a value from an array within an array. Here is my code:
$data = Array (
[message-count] => 1
[messages] => Array (
[0] => Array (
[to] => 19998887777
[message-price] => 0.00550000
[status] => 0
[message-id] => 0300000021B6B103
[remaining-balance] => 18.59500000
[network] => 31000
)
)
);
Then, for example, if I wanted to retrieve the message-id, I'm trying:
$messageID = $data['message-count']['messages']['message-id'];
That doesn't return anything so I know I'm missing something simple. Thank you in advance for any help!