From dc93c38313d07b73ddf47d25b064b2b3a3e71167 Mon Sep 17 00:00:00 2001 From: "Namhyeon, Go" Date: Tue, 26 Feb 2019 15:38:05 +0900 Subject: [PATCH] Update string.utl.php --- helper/string.utl.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/helper/string.utl.php b/helper/string.utl.php index 77e7a42..12fefe7 100644 --- a/helper/string.utl.php +++ b/helper/string.utl.php @@ -92,8 +92,8 @@ if(!check_function_exists("get_cutted_string")) { } } -if(!check_function_exists("explode_by_line")) { - function explode_by_line($str) { +if(!check_function_exists("split_by_line")) { + function split_by_line($str) { return preg_split('/\n|\r\n?/', $str); } } @@ -124,8 +124,8 @@ if(!check_function_exists("endsWith")) { } // https://stackoverflow.com/questions/4955433/php-multiple-delimiters-in-explode/27767665#27767665 -if(!check_function_exists("multiexplode")) { - function multiexplode($delimiters, $string) { +if(!check_function_exists("multi_explode")) { + function multi_explode($delimiters, $string) { $ready = str_replace($delimiters, $delimiters[0], $string); $launch = explode($delimiters[0], $ready); return $launch;