src/Neutrino/Debug/VarDump.php
private function arrayDump($var, $id = null, $idLabel = null)
    {
        $dump = '';
        if (!is_null($id)) {
            if (is_null($idLabel)) {
                $idLabel = '#' . $id;
            }
            $dump .= '<span class="nuc-toggle nuc-toggle-array" data-target="nuc-ref-' . $id . '">' . $idLabel . '</span>';
            $dump .= '<ul class="nuc-array" id="nuc-ref-' . $id . '">';
        } else {
            $dump .= '<span class="nuc-toggle nuc-toggle-array"></span>';
            $dump .= '<ul class="nuc-array">';
        }
        foreach ($var as $key => $val) {
            $dump .= '<li class="nuc-' . str_replace(' ', '-', gettype($val)) . ($this->canHasChild($val) ? ' nuc-close' : '') . '">';
            $dump .= $this->varDump($key) . ' <span class="nuc-sep">=></span> ';
            $dump .= $this->varDump($val);
            $dump .= '</li>';
        }

        $dump .= '</ul>';

        return $dump;
    }
private function arrayDump($var, $id = null, $idLabel = null)
    {
        $dump = '';
        if (!is_null($id)) {
            if (is_null($idLabel)) {
                $idLabel = '#' . $id;
            }
            $dump .= '<span class="nuc-toggle nuc-toggle-array" data-target="nuc-ref-' . $id . '">' . $idLabel . '</span>';
            $dump .= '<ul class="nuc-array" id="nuc-ref-' . $id . '">';
        } else {
            $dump .= '<span class="nuc-toggle nuc-toggle-array"></span>';
            $dump .= '<ul class="nuc-array">';
        }
        foreach ($var as $key => $val) {
            $dump .= '<li class="nuc-' . str_replace(' ', '-', gettype($val)) . ($this->canHasChild($val) ? ' nuc-close' : '') . '">';
            $dump .= $this->varDump($key) . ' <span class="nuc-sep">=></span> ';
            $dump .= $this->varDump($val);
            $dump .= '</li>';
        }

        $dump .= '</ul>';

        return $dump;
    }
Dump an array

@param array    $var
@param int|null $id
@param int|null $idLabel

@return string