php怎么把英文全部转成小写,但是需求要把英文全部转为小写,在php里面用什么函数处理这个问题呢?
<?php $foo = 'hello world!'; $foo = ucwords($foo); // Hello World! $bar = 'HELLO WORLD!'; $bar = ucwords($bar); // HELLO WORLD! $bar = ucwords(strtolower($bar)); // Hello World! ?>
这样就把字母全部转为小写了。
php怎么把英文全部转成小写,但是需求要把英文全部转为小写,在php里面用什么函数处理这个问题呢?
<?php $foo = 'hello world!'; $foo = ucwords($foo); // Hello World! $bar = 'HELLO WORLD!'; $bar = ucwords($bar); // HELLO WORLD! $bar = ucwords(strtolower($bar)); // Hello World! ?>
这样就把字母全部转为小写了。
关注公众号『新起点软件管家』
获取最新网络资源及破解软件!
带你玩转各样软件...
评论前必须登录!
注册