diff options
Diffstat (limited to 'site/app/Libraries/Utility.php')
| -rw-r--r-- | site/app/Libraries/Utility.php | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/site/app/Libraries/Utility.php b/site/app/Libraries/Utility.php new file mode 100644 index 0000000..95a8b80 --- /dev/null +++ b/site/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); + } +} |
