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! ?>
这样就把字母全部转为小写了。
本文地址:https://www.henenseo.com/archives/2928
关注我们:请关注一下我们的微信公众号:扫描二维码
,公众号:xinqidian129
版权声明:本文为原创文章,版权归 新起点博客 所有,欢迎分享本文,转载请保留出处!
关注我们:请关注一下我们的微信公众号:扫描二维码

版权声明:本文为原创文章,版权归 新起点博客 所有,欢迎分享本文,转载请保留出处!