php怎么将字母全部转换为大写-PHP问题

资源魔 29 0

PHP中能够应用strtoupper()函数将字符串中一切字符转换为年夜写。

函数语法:

strtoupper(string)

string:必须。规则要转换的字符串。

示例:

<!DOCTYPE html>
<html>
<body>
<?php
echo strtoupper("Hello WORLD!");
?> 
 
</body>
</html>

成果以下:

1.jpg

更多相干教程请存眷资源魔。

以上就是php怎样将字母全副转换为年夜写的具体内容,更多请存眷资源魔其它相干文章!

标签: php php教程 php故障解决 php使用问题

抱歉,评论功能暂时关闭!