- var_dump: documentation ( source)
- array_merge: documentation ( source)
<?php
$conf = array();
$test = array(
array(
'conf1' => '1'
),
array(
'conf2' => '2'
),
array(
'conf3' => '3'
),
);
foreach ($test as $item) {
$config = array_merge($conf, $item);
}
var_dump($conf);