Just curious. When pushing an array on another:
array_push($array_1, $array_2);
I get the usual behavior, but when I push a pdo query->fetchAll which contains and returns an array, nothing happens.
array_push($array_1, $query->fetchAll());
What is interesting to me is, if I assign the query object to a variable:
$array_fetchAll = $query->fetchAll();
array_push($array_1, $array_fetchAll);
It works like expected.