 <p>Create a recursive function:</p> <p>Semi-psuedo:</p> <pre><code>function dumpArr (arr){ foreach element in arr { if element is array/object{ dumpArr(element) }else{ echo element } } } </code></pre> <p>then, you can use CSS to adjust the padding, margin, etc</p>