$string = "HELLO WORLD!"; $lowercaseString = JString::strtolower($string); echo $lowercaseString; // hello world!
$string1 = "Hello"; $string2 = "hello"; if (JString::strtolower($string1) === JString::strtolower($string2)) { echo "Strings are equal!"; } else { echo "Strings are not equal!"; } // Output: Strings are equal!The `JString` library is a part of the Joomla CMS (Content Management System).