title: array_push multidimensional array
body: <p>I have the following codeline</p>
  
  <pre><code>$return_array = array(
              $count_answers =&gt; array(
                      "name" =&gt; $domain,
                      "type" =&gt; $type,
                      "class" =&gt; $class,
                      "ttl" =&gt;$ttl,
                      "data_lenght" =&gt; $data_l
                      )
       );
  </code></pre>
  
  <p>I want to add <code>preference</code> after data length with the following code</p>
  
  <pre><code>array_push($return_array[$count_answers]['preference'], $preference);
  </code></pre>
  
  <blockquote>
    <p>Warning: array_push() expects parameter 1 to be array, null given in \functions\functions.php on line 367</p>
  </blockquote>
  
  <p>why is my first parameter not an array?</p>