Updated strto_AZaz0-9 function

This commit is contained in:
johnnyq 2022-05-13 15:03:17 -04:00
parent 79df499ad3
commit 5c1eafede8
1 changed files with 3 additions and 3 deletions

View File

@ -410,10 +410,10 @@ function getDomainExpirationDate($name){
function strto_AZaz09($string){
$string = strtolower($string);
$string = ucwords(strtolower($string));
// Gets rid of spaces
$strto_AZaz09 = preg_replace('/\s/', '', $string);
// Replace spaces with _
//$string = str_replace(' ', '_', $string);
// Gets rid of non-alphanumerics
$strto_AZaz09 = preg_replace( '/[^A-Za-z0-9_]/', '', $string );