在PHP中获取stdclass和数组值[重复]

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
    }
  }
}
</div>

From the look of it, it would be:

$object->SendBulkSMS_PHPResult->string[1];