only alpha update

This commit is contained in:
stitz 2020-04-04 23:23:43 +02:00
parent f84d69055c
commit 1e248affe4

View File

@ -50,8 +50,8 @@ function endsWith($haystack, $needle) {
return $length === 0 || (substr ( $haystack, - $length ) === $needle);
}
function onlyAlpha($str) {
return preg_replace ( "/[^a-zA-Z0-9 \-\_]+/", "", $str );
function onlyAlpha($str, $auch = '') {
return preg_replace ( "/[^a-zA-Z0-9 \-\_" . $auch . "]+/", "", $str );
}
function shortener($str, $len = 50, $fill = '...') {
if (strlen ( $str ) > $len) {