pushing and apending arrays into an associative array in php
<p>How do I push arrays inside the "adjacencies" key value pair that should have an encapsulated array holding the "arrays" (ie. array(("nodeTo" => "$to"),("nodeTo" => "$to"))) without overwriting them and appending them similiar to "+=".  also the push into the key "adjacencies" doesnt seem to pick up the value.</p>

<pre><code>    $node[] = array(
        "adjacencies" =&gt; array(), //inside this array should go all the arrays seprated by commas.
        "data" =&gt; array(
                "color" =&gt; $color1,
                "type" =&gt; $type1 
            );

 // this push doesnt seem to detect the adjacencies value and doesnt really push the array inside of the container array. I also tried $node["adjacencies"][]=array("nodeTo" =&gt; "$to"); but it didnt work
    $node["adjacencies"]=array("nodeTo" =&gt; "$to");



}
</code></pre>
