upercase in php code example Example: upppercase php $str = "upper"; //php string to uppercase echo strtoupper($str); // => UPPER