Array with random indices

Asked

Viewed 55 times

1

I have a random array that returns several keys and I need to manipulate all the returned data, the problem is that they vary depending on the occasion, I want to display this organized information in HTML, but there are cases where this array returns more values, or even nothing or keys are missing or more keys are added. That way I can not specify in the code what information goes in which place because if the index does not exist it will be empty and will generate a Warning. How can I handle an array like this ? example: inserir a descrição da imagem aqui

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.