Sign up ×
Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them, it only takes a minute:

This question already has an answer here:

How do I access the following stdclass, and echo Transaction ID has already been used.

object(stdClass)#2 (1) {
  ["SendBulkSMS_PHPResult"]=>
  object(stdClass)#3 (1) {
    ["string"]=>
    array(3) {
      [0]=>
      string(1) "0"
      [1]=>
      string(37) "Transaction ID has already been used."
      [2]=>
      NULL
    }
  }
}
share|improve this question

marked as duplicate by Glorfindel, bytecode77, andrewsi, karthik, Leo Aug 10 at 7:46

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1  
This might help you: stackoverflow.com/questions/3851489/… – Stuart Wagner Aug 9 at 9:52

1 Answer 1

From the look of it, it would be:

$object->SendBulkSMS_PHPResult->string[1];
share|improve this answer
    
it does not work if tried above line, whereas doing $response->SendBulkSMS_PHPResult->string[1]; helped and returned the actual value from the stdclass – wicky Aug 9 at 10:13
    
Thanks :-) anyways it helped. – wicky Aug 9 at 10:19

Not the answer you're looking for? Browse other questions tagged or ask your own question.