This commit is contained in:
Dr Masroor Ehsan 2025-01-30 00:46:50 +06:00
parent ce28bb1422
commit a02adfc685

View File

@ -143,3 +143,10 @@ function formatTitle(string $str): string
->toString(); ->toString();
} }
} }
if (! function_exists('tokenizeString')) {
function tokenizeString(string $str): array
{
return preg_split('/\W+/', trim($str), -1, PREG_SPLIT_NO_EMPTY);
}
}