【函数分享】每日PHP函数分享(2021-1-20)

strtoupper () 函数把所有字符转换为大写。

strtoupper( string $str ) : string

 

参数描述

  str必需。规定要转换的字符串。

返回值:

  返回把字符串中所有字符转换为大写。

 

实例:

echo strtoupper("hello world");

 

//HELLO WORLD

  

posted @ 2021-01-21 12:54  梦中程序员  阅读(29)  评论(0)    收藏  举报