$value)
{
if($arr[$key]) $n='+';
else $n='-';
if($i+1==$cnt && $root) $pre = substr_replace($pre, 'L', -1);
$res .= $pre.$n.' '.$arr[$root][$key].'
';
if($i+1==$cnt && $root) $pre = substr_replace($pre, ' ', -1);
if($arr[$key])
{
$disp = 'none';
$res .= '