如何訪問以下stdclass,並且echo事務ID已被使用。在PHP中獲取stdclass和數組值
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
}
}
}
這可以幫助你:http://stackoverflow.com/questions/3851489/return-php-object-by-index- number-not-name –