How to parse php array response
Get the solution ↓↓↓I Need to parse the below array and retrieve values;status,id.
Below is the PHP Array
Array ( [0] => Post201Response Object ( [container:protected] =>
Array ( [links] => Post201ResponseLinks Object ()
[id] => 6212588543
[status] => AUTHORIZED
Below is my php code
$status = $apiResponse[0]->links->status;
print_r($status);
But I keep on getting a notice 'Trying to get property 'status' of non-object'
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: http failure during parsing for
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Similar questions
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.