Update string.utl.php

This commit is contained in:
Namhyeon Go 2018-09-28 15:29:13 +09:00 committed by GitHub
parent 74c1cb6744
commit f2c6335f9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -121,3 +121,11 @@ if(!function_exists("endsWith")) {
return (substr($haystack, -$length) === $needle);
}
}
if(!function_exists("multiexplode")) {
function multiexplode($delimiters,$string) {
$ready = str_replace($delimiters, $delimiters[0], $string);
$launch = explode($delimiters[0], $ready);
return $launch;
}
}