title: Smarty automatic generate HTML table
body: <p>I tried to make HTML table with Smarty but I can't. I have array (PHP) that look something like that (raw after print_r):</p>
  
  <pre><code>Array (
              [1] =&gt; Array (
                      [1] =&gt; Array (
                          [New York] =&gt; Array (
                              [0] =&gt; Array (
                                  [zone] =&gt; 7
                              )
                              [1] =&gt; Array (
                                  [zone] =&gt; 2
                              )
                              [2] =&gt; Array (
                                  [zone] =&gt; 1
                              )
                          )
                          [London] =&gt; Array (
                              [0] =&gt; Array (
                                  [zone] =&gt; 3
                              )
                              [1] =&gt; Array (
                                  [zone] =&gt; 9
                              )
                          )
                      )
                  )
          )
  </code></pre>
  
  <p>And this is my target(goal):</p>
  
  <p><img src="https://i.stack.imgur.com/4LnOz.png" alt="Image">.</p>
  
  <p>For now I just make only this:</p>
  
  <pre><code>&lt;!--{foreach key=level_1_key item=level_1_val from=$items}--&gt;
      &lt;!--{foreach key=level_2_key item=level_2_val from=$level_1_val}--&gt;
          &lt;!--{foreach key=level_3_key item=level_3_val from=$level_2_val}--&gt;
              &lt;tr&gt;
                  &lt;td&gt;&lt;!--{$level_1_key}--&gt;&lt;/td&gt;
                  &lt;td&gt;&lt;!--{$level_2_key}--&gt;&lt;/td&gt;
                  &lt;td&gt;&lt;!--{$level_3_key}--&gt;&lt;/td&gt;
              &lt;/tr&gt;
          &lt;!--{/foreach}--&gt;
      &lt;!--{/foreach}--&gt;
  &lt;!--{/foreach}--&gt;
  </code></pre>
  
  <p>I will be very grateful if someone give a advice how to make it.</p>