private function getSpace($length) { $str = ''; for ($i = 0; $i < $length; $i++) { $str .= ' '; } return $str; }