$str = "This is 7woshi.com";  
echo "全部变小写 strtolower: ".strtolower($str);  
echo "第一个字母大写 ucfirst: ".ucfirst($str);  
echo "单词首字母大写 ucwords: ".ucwords($str);  
echo "全部变大写 strtoupper: ".strtoupper($str);  
// 5.3 以后, 支持lcfirst($str); //第一个字母小写


php全部变小写 strtolower: this is 7woshi .com
php第一个字母大写 ucfirst: This is 7woshi .com

php单词首字母大写 ucwords: This Is 7woshi .Com

php全部变大写 strtoupper: THIS IS 7WOSHI.COM

相关文章:

  • 2021-06-04
  • 2021-11-02
  • 2022-12-23
  • 2021-08-07
  • 2022-12-23
  • 2021-10-26
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案