only alpha update
This commit is contained in:
parent
f84d69055c
commit
1e248affe4
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user