Answer the question
In order to leave comments, you need to log in
PHP parsing problem?
Actually, there is a code of this kind, as a result of which I get the basic information and display it in a table:
$data = json_decode(file_get_contents('http://test.ru/api'), 1);
foreach ($data['response'] as $d) {
// Тут идет вывод данных в таблицу
}
Answer the question
In order to leave comments, you need to log in
$data = json_decode(file_get_contents('http://test.ru/api'), 1)['response'];
$data2 = json_decode(file_get_contents('http://test.ru/api?info'), 1)['response'];
$data = array_merge($data, $data2);
foreach ($data as $d) {
// Здесь данные из api?info и api.
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question