only alpha update
This commit is contained in:
@@ -50,8 +50,8 @@ function endsWith($haystack, $needle) {
|
|||||||
|
|
||||||
return $length === 0 || (substr ( $haystack, - $length ) === $needle);
|
return $length === 0 || (substr ( $haystack, - $length ) === $needle);
|
||||||
}
|
}
|
||||||
function onlyAlpha($str) {
|
function onlyAlpha($str, $auch = '') {
|
||||||
return preg_replace ( "/[^a-zA-Z0-9 \-\_]+/", "", $str );
|
return preg_replace ( "/[^a-zA-Z0-9 \-\_" . $auch . "]+/", "", $str );
|
||||||
}
|
}
|
||||||
function shortener($str, $len = 50, $fill = '...') {
|
function shortener($str, $len = 50, $fill = '...') {
|
||||||
if (strlen ( $str ) > $len) {
|
if (strlen ( $str ) > $len) {
|
||||||
|
|||||||
Reference in New Issue
Block a user