diff options
author | Thomas Lange <code@nerdmind.de> | 2016-04-22 21:17:53 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2016-04-22 21:17:53 +0200 |
commit | 7a49346f8069d814c51af2e0cefcc6e66fe9826e (patch) | |
tree | 1de48b8be3e12ec4ea8d6695f99217d39de26ebf /include/functions.php | |
parent | 74d01962a6f77eb2b8138864f18ed53eb136c432 (diff) | |
download | bigpipe-7a49346f8069d814c51af2e0cefcc6e66fe9826e.tar.gz bigpipe-7a49346f8069d814c51af2e0cefcc6e66fe9826e.tar.xz bigpipe-7a49346f8069d814c51af2e0cefcc6e66fe9826e.zip |
Multiple updates with async demo.
Diffstat (limited to 'include/functions.php')
-rwxr-xr-x | include/functions.php | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/include/functions.php b/include/functions.php index 21eb3f0..d06823d 100755 --- a/include/functions.php +++ b/include/functions.php @@ -1,12 +1,12 @@ -<?php -#==================================================================================================== -# FUNCTION: Removes all line breaks and tabs from a string or an array with strings -#==================================================================================================== -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; -} +<?php
+#===============================================================================
+# FUNCTION: Removes all line breaks and tabs from a string or an array with strings
+#===============================================================================
+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 |