From bf996f7247133c536511c23b6ad30aa222bfd6d9 Mon Sep 17 00:00:00 2001
From: Thomas Lange <code@nerdmind.de>
Date: Wed, 15 Apr 2015 21:29:19 +0200
Subject: Initial commit

---
 include/functions.php | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100755 include/functions.php

(limited to 'include/functions.php')

diff --git a/include/functions.php b/include/functions.php
new file mode 100755
index 0000000..443d594
--- /dev/null
+++ b/include/functions.php
@@ -0,0 +1,12 @@
+<?php
+#====================================================================================================
+# FUNCTION: Entfernt alle Zeilenumbrüche und Tabulatoren aus einem String
+#====================================================================================================
+function removeLineBreaksAndTabs($mixed, $replace = NULL) {
+	if(is_array($mixed)) {
+		return array_map(__FUNCTION__, $mixed);
+	}
+
+	return is_string($mixed) ? str_replace(["\r\n", "\r", "\n", "\t"], $replace, $mixed) : $mixed;
+}
+?>
\ No newline at end of file
-- 
cgit v1.2.3