title: Pass a JSON array from PHP to Dynatree
body: <p>I'm using Dynatree for the first time and wrote a PHP script that returns a properly formatted JSON array.</p>
  
  <p>I've read the Dynatree <a href="http://wwwendt.de/tech/dynatree/doc/dynatree-doc.html" rel="nofollow">documentation</a>, but can't figure out how to pass in the JSON array from my PHP script so its contents can be loaded as the tree structure.</p>
  
  <p>At the top of my HTML file, I'm using <code>&lt;?php include('tree.php') ?&gt;</code> which automatically returns the formatted JSON array (named <code>$categories</code>). I'd also be fine with calling a function from JavaScript to retrieve the tree if that makes it easier.</p>
  
  <p>Can someone show me how to deliver my array to Dynatree?</p>