strtoupper
将字符串转化为大写
strtoupper()
函数把字符串转换为大写。
注释:该函数是二进制安全的。
lcfirst()
- 把字符串中的首字符转换为小写strtolower()
- 把字符串转换为小写ucfirst()
- 把字符串中的首字符转换为大写ucwords()
- 把字符串中每个单词的首字符转换为大写把所有字符转换为大写:
<?php echo strtoupper("Hello WORLD!"); ?>
亲自试一试
strtoupper(string)
参数 | 描述 |
---|---|
string | 必需。规定要转换的字符串。 |