", $overview); $return['td'] = str_replace("\n", "
", $td); $return['symptoms'] = str_replace("\n", "
", $symptoms); $return['disinfection'] = str_replace("\n", "
", $disinfection); return $return; } function array_change_key_case_recursive($input){ $input = array_change_key_case($input); foreach($input as $key=>$array){ if(is_array($array)){ $input[$key] = array_change_key_case_recursive($array); } } return $input; } function file_get_contents_utf8($fn) { $content = file_get_contents($fn); return mb_convert_encoding($content, 'UTF-8', mb_detect_encoding($content, 'UTF-8, ISO-8859-1', true)); } function sendEmail($to, $from, $subject, $body, $headers='') { $header = 'From: ' . $from . "\r\n"; if(!$headers) $header .= 'X-Mailer: TC-WebForm-/'. TCVersion; return mail($to, $subject, $body, $header); }