- var_dump: documentation ( source)
<?php
$stack = array(
'global' => array(
'areas' => array('a' => 'b'),
'crypt' => array('a' => 'b'),
'install' => array('a' => 'b'),
)
);
while ($stack) {
list($key, $value) = each($stack);
unset($stack[$key]);
if (is_array($value)) {
if (count($value)) {
foreach ($value as $subKey => $node) {
$build[$key . $separator . $subKey] = $node;
}
} else {
$build[$key] = null;
}
$stack = $build + $stack;
continue;
}
$parameters[$key] = $value;
}
var_dump($parameters);