php怎么将字母全部转换为大写
来源:动视网
责编:小采
时间:2020-11-03 13:38:24
php怎么将字母全部转换为大写
php怎么将字母全部转换为大写:PHP中可以使用strtoupper()函数将字符串中所有字符转换为大写。函数语法:strtoupper(string)string:必需。规定要转换的字符串。 示例:<!DOCTYPE html> <html> <body> <php echo strtoupper(&
导读php怎么将字母全部转换为大写:PHP中可以使用strtoupper()函数将字符串中所有字符转换为大写。函数语法:strtoupper(string)string:必需。规定要转换的字符串。 示例:<!DOCTYPE html> <html> <body> <php echo strtoupper(&

PHP中可以使用strtoupper()函数将字符串中所有字符转换为大写。
函数语法:
string:必需。规定要转换的字符串。
示例:
<!DOCTYPE html>
<html>
<body>
<?php
echo strtoupper("Hello WORLD!");
?>
</body>
</html>效果如下:

更多相关教程请关注Gxlcms。
php怎么将字母全部转换为大写
php怎么将字母全部转换为大写:PHP中可以使用strtoupper()函数将字符串中所有字符转换为大写。函数语法:strtoupper(string)string:必需。规定要转换的字符串。 示例:<!DOCTYPE html> <html> <body> <php echo strtoupper(&