From c5c8deaa40b5e1eaa52a9ca2eb45a252285b3166 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Tue, 26 Feb 2019 17:40:46 +0900 Subject: [PATCH] Update string.utils.php --- helper/string.utils.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/helper/string.utils.php b/helper/string.utils.php index d0baf1c..e182892 100644 --- a/helper/string.utils.php +++ b/helper/string.utils.php @@ -115,8 +115,13 @@ if(!check_function_exists("multi_explode")) { } if(!check_function_exists("multi_strpos")) { - function multi_strpos($string, $delimiters) { + function multi_strpos($string, $delimiters, $offset=0) { $pos = false; + + if($offset > 0) { + $string = substr($offset); + } + foreach($delimiters as $s) { $cur_pos = strpos($string, $s); if($cur_pos !== false) {