Wednesday, April 12, 2017

get totalcount in php laravel from SoapClient Response

How to get the totalcount 

$successful_Loan = $client->ApprovedLoanRequests(array('institutionCode' => '100567', 'startIndex' => 0, 'maxRows' => 100)); //100 is the maximum number of rows var_dump($successful_Loan->ApprovedLoanRequestsResult->totalCount);

    return Undefined property: stdClass::$totalCount

    how can i get the totalcount out from the response 

        object(stdClass)[268]
      public 'ApprovedLoanRequestsResult' => 
        object(stdClass)[269]
      public 'totalCount' => int 0



via Babatunde Esanju

Advertisement