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