stdClass Object
(
[ABRPayloadSearchResults] => stdClass Object
(
[request] => stdClass Object
(
[identifierSearchRequest] => stdClass Object
(
[identifierType] => ABN
[identifierValue] => johnsmith
[history] => N
)
)
[response] => stdClass Object
(
[dateRegisterLastUpdated] => 0001-01-01
[dateTimeRetrieved] => 2015-06-16T21:19:38.3159717+10:00
[exception] => stdClass Object
(
[exceptionDescription] => Search text is not a valid ABN or ACN
[exceptionCode] => WEBSERVICES
)
)
)
)
this result coming in variable print_r($results) so fetching particular values -
echo $result->ABRPayloadSearchResults->request->identifierSearchRequest->identifierType;
echo $result->ABRPayloadSearchResults->response->exception->exceptionDescription;
(
[ABRPayloadSearchResults] => stdClass Object
(
[request] => stdClass Object
(
[identifierSearchRequest] => stdClass Object
(
[identifierType] => ABN
[identifierValue] => johnsmith
[history] => N
)
)
[response] => stdClass Object
(
[dateRegisterLastUpdated] => 0001-01-01
[dateTimeRetrieved] => 2015-06-16T21:19:38.3159717+10:00
[exception] => stdClass Object
(
[exceptionDescription] => Search text is not a valid ABN or ACN
[exceptionCode] => WEBSERVICES
)
)
)
)
this result coming in variable print_r($results) so fetching particular values -
echo $result->ABRPayloadSearchResults->request->identifierSearchRequest->identifierType;
echo $result->ABRPayloadSearchResults->response->exception->exceptionDescription;
No comments:
Post a Comment