all cap in php code example Example 1: strtoupper php string strtoupper ( $string ) Example 2: php code to convert to small letter $str = strtolower($str);