private function getIndent($depth) { $indent = ''; for ($a = 0; $a <= $depth; $a++) { $indent .= str_repeat(' ', 4); } return $indent; }