diff options
| author | Max | 2019-05-13 15:50:36 +0200 |
|---|---|---|
| committer | Max | 2019-05-13 15:50:36 +0200 |
| commit | 7149647b729b2aa30d76346a7cc3da37c1c692ca (patch) | |
| tree | b773b7c02a3434ea46d12659302abc586b0fdb7b /app/Libraries/Utility.php | |
| download | kategorischeraperitif-7149647b729b2aa30d76346a7cc3da37c1c692ca.tar.gz | |
Initial commit.
Diffstat (limited to 'app/Libraries/Utility.php')
| -rw-r--r-- | app/Libraries/Utility.php | 12 |
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); + } +} |
