R
R
Rakan2017-07-04 19:20:52
PHP
Rakan, 2017-07-04 19:20:52

How to get a chunk from a PHP array?

There is an array, you need to find the line containing the title and get the text from it after =>
5a632a2782da464fb258c406535839c0.PNG

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stalker_RED, 2017-07-04
@Stalker_RED

Rakan :

It seems to me that you need to find a line and already look in it =>
And I think you need to read something from the basics . There where about indexes and keys, for example. It is not stored like this in the form of text, these arrows are drawn for you for ease of reading.
foreach ($my_array['response']['items'] as $item) {
  echo $item['title] . "<br>\n";
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question