-1
如何在php laravel中獲取totalcount
?如何從SoapClient響應中獲取php laravel中的totalcount響應
object(stdClass)[268]
public 'ApprovedLoanRequestsResult' =>
object(stdClass)[269]
public 'totalCount' => int 0
如何在php laravel中獲取totalcount
?如何從SoapClient響應中獲取php laravel中的totalcount響應
object(stdClass)[268]
public 'ApprovedLoanRequestsResult' =>
object(stdClass)[269]
public 'totalCount' => int 0
看來,你有totalCount
爲stdClass
對象內部的stdClass
對象內部的成員。你可以這樣得到它
yourobject->ApprovedLoanRequestsResult->totalCount
假設外部對象的名稱是yourobject
。
只需使用響應參數:
$ response =「」; $ totalCountResponse = $ response-> totalCount;
它應該工作。