I am new to OOP and having hard time trying to echo value of SMSMessageBody in code below:
stdClass Object
(
[GetSentMessagesResult] => stdClass Object
(
[SentMessage] => Array
(
[0] => stdClass Object
(
[ID] => 6567960
[LineNumber] => 30004554552584
[SMSMessageBody] => Lorem ipsum
[MobileNo] => 9122588874
....
I have seen these posts in stackoverflow:
So I tried the following code:
echo $client->GetSentMessagesResult->SentMessage[0]->SMSMessageBody;
But got this Notice:
Notice: Trying to get property of non-object in C:\xampp\htdocs\banks\newbank\sentsms.php on line 18
Any help would be appreciated.
$client->GetSentMessagesResult->SentMessageor maybe at$client->GetSentMessagesResult?* - FirstOne"<pre/>";print_r($client);? - Anant Kumar Singh