php - How to retrieve a specific value from a RESTful response using curl
Get the solution ↓↓↓Answer
Solution:
You can first decode your result withjson_decode
using below statement.
$arr = json_decode($result, true);
And then you can access name via$arr['name'];
echo $arr['name'];
It's very simple, Try out this.
Share solution ↓
Additional Information:
Link To Answer People are also looking for solutions of the problem: call to a member function format() on string
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.