php如何转换为小写字母

strtolower函数: 该函数将传入的字符串参数所有的字符都转换成小写。

<?php
  $str = "I want To FLY";
  $str = strtolower($str);
  echo $str;
//by freexyz.cn
?>

输出:

i want to fly
© 版权声明
THE END
喜欢就支持一下吧
点赞0 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容