public function WriteNewArrayAndItsContents($array, $arrayOpened = false, $tabAmount = 0) {
        $output = "";
        foreach ($array as $key => $value) {
            if (is_array($value)) {
                $output .= $this->WriteAssociativeArrayValueAsNewArray($key, $tabAmount); //new array opened
                $output .= $this->WriteNewArrayAndItsContents($value, true, $tabAmount);
            } else {
                $output .= $this->WriteAssociativeArrayValueWithKeyAndValue($key, $value, $tabAmount);
            }
        }
        if ($arrayOpened) {
            $output .= $this->CloseArray($tabAmount - 1);
        }
        return $output;
    }