Files
moonwell-web/app/Support/mbstring-polyfill.php
2026-03-11 22:04:36 +04:00

13 lines
336 B
PHP

<?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);
}
}