A
A
Andrew2015-08-06 13:52:40
PHP
Andrew, 2015-08-06 13:52:40

How to output $data->tags instagram.class.php array?

Can you tell me how to output an array?
I use instagram.class.php

$data->tags
Массив, содержащий все теги данного изображения.

Here is the code where the array should go:
foreach ($media->data as $data) 
    {
        echo '<li><img id="uicon" src="'. $data->user->profile_picture . '" height=30 width=30>'.$data->user->username.''.gmdate("Y-m-d H:i", $data->created_time).'<img src="'.$data->images->low_resolution->url.'">Данные из массива должны встать сюда</li>';
    }
    echo '</ul>';

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
soulness, 2015-08-07
@Kaspel

Maybe just turn the array into a string with implode and output?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question