title: Quickest way to turn multidimensional array into List?
body: <p>I have the following array:</p>
  
  <pre><code>Array
  (
      [0] =&gt; stdClass Object
          (
              [categoryid] =&gt; 60
              [categoryName] =&gt; Parent Category A
              [categoryParent] =&gt; 
          )
  
      [1] =&gt; stdClass Object
          (
              [categoryid] =&gt; 65
              [categoryName] =&gt; Parent Category B
              [categoryParent] =&gt; 
          )
  
      [2] =&gt; stdClass Object
          (
              [categoryid] =&gt; 68
              [categoryName] =&gt; Child Category A
              [categoryParent] =&gt; 65
          )
  
      [3] =&gt; stdClass Object
          (
              [categoryid] =&gt; 69
              [categoryName] =&gt; Super Child Category A
              [categoryParent] =&gt; 68
          )
  )
  </code></pre>
  
  <p>I need to end up with a list like this:</p>
  
  <ul>
  <li>Parent Category A</li>
  <li>Parent Category B
  <ul>
  <li>Child Category A
  <ul>
  <li>Super Child Category A</li>
  </ul></li>
  </ul></li>
  </ul>
  
  <p>What would be the easiest way to do this?</p>