PHP中字符串大小写转换

  • ucfirst() 函数把字符串中的首字符转换为大写。
  • lcfirst() - 把字符串中的首字符转换为小写
  • strtolower() - 把字符串转换为小写
  • strtoupper() - 把字符串转换为大写
  • ucwords() - 把字符串中每个单词的首字符转换为大写

猜你喜欢

转载自blog.csdn.net/fatong3/article/details/81218794
今日推荐