first commit
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
|
||||
|
||||
if (! function_exists('mb_split')) {
|
||||
function mb_split(string $pattern, string $string, int $limit = -1): array|false
|
||||
{
|
||||
$delimiter = '/';
|
||||
$escapedPattern = str_replace($delimiter, '\\'.$delimiter, $pattern);
|
||||
|
||||
return preg_split($delimiter.$escapedPattern.$delimiter.'u', $string, $limit);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user