$str = "hello world!"; $str = JString::strtoupper($str); echo $str;
$str = "convert this to uppercase"; $str = JString::strtoupper($str); echo $str;Output: "CONVERT THIS TO UPPERCASE" The JString class is part of the Joomla Framework package library. The JString class includes many useful string manipulation functions and is often used in Joomla extensions and templates.