title: Parsing stdClass() object with Smarty
body: <p>So I pass a PHP stdClass() object to Smarty, which looks like this, for example : </p>
  
  <pre><code>stdClass Object
  (
      [1] =&gt; stdClass Object
          (
              [id] =&gt; 1
              [children] =&gt; stdClass Object
                  (
                      [4123] =&gt; stdClass Object
                          (
                              [id] =&gt; 4123
                              [children] =&gt; stdClass Object
                                  (
                                      [221] =&gt; stdClass Object
                                          (
                                              [id] =&gt; 221
                                              [children] =&gt; stdClass Object
                                                  (
                                                  )
                                          ),
                                      [55] =&gt; stdClass Object
                                          (
                                              [id] =&gt; 55
                                              [children] =&gt; stdClass Object
                                                  (
                                                  )
                                          )
                                  )
                          ),
                      [666] =&gt; stdClass Object
                          (
                               [id] =&gt; 666
                               [children] =&gt; stdClass Object
                                   (
                                   )
                          )
                  )
          )
  )
  </code></pre>
  
  <p>Each object has an id and children, which have the same structure.
  How can I output all the id-s recursively like the this: <code>1, 4123, 221, 55, 666</code> using Smarty ?</p>