From 5c1eafede84595e0f3c4c8a92e9e52b8ff6b021a Mon Sep 17 00:00:00 2001 From: johnnyq Date: Fri, 13 May 2022 15:03:17 -0400 Subject: [PATCH] Updated strto_AZaz0-9 function --- functions.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/functions.php b/functions.php index c7fb52e3..788ae845 100644 --- a/functions.php +++ b/functions.php @@ -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 );