Sorry, its a simple question but difficult for me as I am a new php developer. I have an array $thread_template, which is generated dynamically. When I print this array using print_r function, it gives
BP_Messages_Thread_Template Object
(
[current_message] => 3
[message_count] => 4
[message] => stdClass Object
(
[id] => 73 // I want to get this id.
[thread_id] => 63
[sender_id] => 289
[subject] => Re: This is an anonymous message about a dino
[message] => this message is second reply from family member.
[date_sent] => 2014-05-05 13:25:10
[anonymous] =>
) .... and so on
I want to get get id at line# 6. I am using
$thread_template->$message->id;
I also used
$thread_template[message][id];
both are not working. How can I get an id?