每个单词的首字母转换为大写:ucwords()
| 代码如下 | 复制代码 |
<?php $foo='hello world!'; $foo= ucwords($foo); // Hello World!
$bar='HELLO WORLD!'; $bar= ucwords($bar); // HELLO WORLD! $bar= ucwords(strtolower($bar));// Hello World! ?> | |
第一个单词首字母变大写:ucfirst()
| 代码如下 | 复制代码 |
<?php $foo='hello world!'; $foo= ucfirst($foo); // Hello world!
$bar='HELLO WORLD!'; $bar= ucfirst($bar); // HELLO WORLD! $bar= ucfirst(strtolower($bar));// Hello world! ?> | |
第一个单词首字母变小写:lcfirst()
| 代码如下 | 复制代码 |
<?php $foo='HelloWorld'; $foo= lcfirst($foo); // helloWorld
$bar='HELLO WORLD!'; $bar= lcfirst($bar); // hELLO WORLD! $bar= lcfirst(strtoupper($bar));// hELLO WORLD! ?> | |
所有 字母变大写:strtoupper()
所有 字母变小写:strtolower()
韩剧再婚皇后阿里云盘全集高清1080P资源链接-韩剧再婚皇后免费阿里云盘资源下载4K高清无删减版链接
poipiku网站如何打开-poipiku官网网页版访问入口
明日方舟:终末地-云游戏畅玩入口-明日方舟:终末地-网页版在线直连地址
poki在线小游戏网页版-poki免费游戏大全入口
poki游戏入口-点开即玩-poki游戏-在线免费畅玩
原神akt大佬资源viciNeko入口链接-原神akt大佬资源网页vicineko入口链接分享