helper
This commit is contained in:
parent
ce28bb1422
commit
a02adfc685
@ -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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user