<?php
function ech($arr, $ke=NULL)
{
foreach($arr as $key => $value)
{
echo "arr $ke $key = $value \r\n";
}
else
{
$ke = "$ke ".$key;
ech($value, $ke);
}
}
'key' => 'value',
'key11' => 'value11',
'key12' => 'value12',
'key131' => 'value131',
'key132' => 'value132')),
'key2' => 'value2'
);
ech($a);
?>
PD9waHAKCmZ1bmN0aW9uIGVjaCgkYXJyLCAka2U9TlVMTCkKewoJZm9yZWFjaCgkYXJyIGFzICRrZXkgPT4gJHZhbHVlKQoJaWYgKCFpc19hcnJheSgkdmFsdWUpKQoJewoJCSR0ZXN0ID0gZXhwbG9kZSgiICIsJGtlKTsKCQlwcmludF9yKCR0ZXN0KTsKCQlhcnJheV9wb3AoJHRlc3QpOwoJCSRrZSA9IGltcGxvZGUoIiAiLCR0ZXN0KTsKCQllY2hvICJhcnIgJGtlICRrZXkgPSAkdmFsdWUgXHJcbiI7Cgl9CgllbHNlCgl7CgkJJGtlID0gIiRrZSAiLiRrZXk7CgkJZWNoKCR2YWx1ZSwgJGtlKTsKCX0KfQoKCiRhID0gYXJyYXkoCgkna2V5JyA9PiAndmFsdWUnLAoJJ2tleTEnID0+YXJyYXkoCgkJJ2tleTExJyA9PiAndmFsdWUxMScsCgkJJ2tleTEyJyA9PiAndmFsdWUxMicsCgkJJ2tleTEzJyA9PiBhcnJheSgKCQkJJ2tleTEzMScgPT4gJ3ZhbHVlMTMxJywKCQkJJ2tleTEzMicgPT4gJ3ZhbHVlMTMyJykpLAoJJ2tleTInID0+ICd2YWx1ZTInCgkpOwoJCmVjaCgkYSk7Cgo/PgoJ