PHP字符串大小写字母转换的几个常用函数

在编写PHP程序时,经常会需要对一些字符串进行大小写转换,下面是几个最常用的函数
strtolower()       //将字符串转换为小写形式
strtoupper()     //将字符串转换为大写形式
ucfirst()           //将字符串的第一个字符转换为大写形式
ucwords()       //将字符串中每一个单词的首字母转换为大写形式

发表评论?

1 条评论。

发表评论


注意 - 你可以用以下 HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>