Skip to content
Advertisement

Print Multi-dimensional array using loop in PHP

I don’t understand how to use nested loops(for, foreach,while,dowhile) for printing this multi-dimensional array values in separate lines. I am new in this sector.

Here is the code:

JavaScript

Advertisement

Answer

you have associative array inside associative array You have to loop the first associative array and inside it loop the associative array like this

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement