L
L
leistolz2016-04-29 07:18:25
PHP
leistolz, 2016-04-29 07:18:25

How to process json response?

I have this json response:

{"response":[{"id":1,"first_name":"Павел","last_name":"Дуров","city":{"id":2,"title":"Санкт-Петербург"}},{"id":7,"first_name":"Алексей","last_name":"Кобылянский","city":{"id":1,"title":"Москва"},"hidden":1}]}

How can I get both "first_name" parameters out of this response?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
DevMan, 2016-04-29
@leistolz

ideone.com/fFVHvf

N
nuhena, 2016-04-29
@nuhena

Convert to array and pull

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question