summaryrefslogtreecommitdiff
path: root/app/Libraries/Utility.php
diff options
context:
space:
mode:
authorMax2019-05-13 15:50:36 +0200
committerMax2019-05-13 15:50:36 +0200
commit7149647b729b2aa30d76346a7cc3da37c1c692ca (patch)
treeb773b7c02a3434ea46d12659302abc586b0fdb7b /app/Libraries/Utility.php
downloadkategorischeraperitif-7149647b729b2aa30d76346a7cc3da37c1c692ca.tar.gz
Initial commit.
Diffstat (limited to 'app/Libraries/Utility.php')
-rw-r--r--app/Libraries/Utility.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/app/Libraries/Utility.php b/app/Libraries/Utility.php
new file mode 100644
index 0000000..95a8b80
--- /dev/null
+++ b/app/Libraries/Utility.php
@@ -0,0 +1,12 @@
+<?php
+namespace App\Libraries;
+use App\Libraries\Utility;
+
+class Utility {
+
+ public static function escapeLike($string) {
+ $search = array('%', '_');
+ $replace = array('\%', '\_');
+ return str_replace($search, $replace, $string);
+ }
+}