Array with random indices

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 according to the occasion, I want to display this information organized in HTML, but there are cases where this array returns more values, or even nothing or missing keys or more keys are added. That way I can not specify in the code what information goes in that place because if the index does not exist it will be empty and will generate a Warning. How can I manipulate an array like this? example:

    
asked by anonymous 10.05.2018 / 03:12

0 answers