来源gaodai$ma#com搞$代*码网
PHP中可以使用strtoupper()函数将字符串中所有字符转换为大写。
函数语法:
strtoupper(string)
string:必需。规定要转换的字符串。
示例:
<!DOCTYPE html><html><body><?phpecho strtoupper("Hello WORLD!");?> </body></html>
效果如下:
更多相关教程请关注搞代码。
以上就是php怎么将字母全部转换为大写的详细内容,更多请关注搞代码gaodaima其它相关文章!