上一页 1 ··· 4 5 6 7 8 9 下一页
摘要: lcfirst() 使一个字符串的第一个字符小写。 string lcfirst ( string $str ) 说明:返回str的第一个字符小写了的字符串。如果str的第一个字符是字母,则将其转换为小写。 需要注意的是"字母"是由当前语言区域决定的。比如,在默认的"C"区域像日耳曼语系中的元音变音 阅读全文
posted @ 2021-01-28 08:35 梦中程序员 阅读(59) 评论(0) 推荐(0)
摘要: preg_split() 通过一个正则表达式分隔字符串。 array preg_split ( string $pattern, string $subject[, int $limit=-1[, int $flags=0]]) 说明: 通过一个正则表达式分隔给定字符串. 参数描述 pattern 阅读全文
posted @ 2021-01-27 09:15 梦中程序员 阅读(84) 评论(0) 推荐(0)
摘要: split() 用正则表达式将字符串分割到数组中。 array split ( string $pattern , string $string [, int $limit ] ) 说明: 本函数返回一个字符串数组,每个单元为 string 经区分大小写的正则表达式 pattern 作为边界分割出的 阅读全文
posted @ 2021-01-26 08:55 梦中程序员 阅读(73) 评论(0) 推荐(0)
摘要: chunk_split() 将字符串分割成小块。 string chunk_split ( string $body [, int $chunklen = 76 [, string $end = "\r\n" ]] ) 说明: 使用此函数将字符串分割成小块非常有用。例如将 base64_encode 阅读全文
posted @ 2021-01-25 13:36 梦中程序员 阅读(61) 评论(0) 推荐(0)
摘要: lcfirst () 使一个字符串的第一个字符小写 lcfirst ( string $str ) : string 参数描述 str必需。规定要转换的字符串。 返回值: 返回第一个字母小写的 str 字符串,如果是字母的话。 实例: echo lcfirst('Hello World'); //h 阅读全文
posted @ 2021-01-23 08:47 梦中程序员 阅读(36) 评论(0) 推荐(0)
摘要: ucwords () 函数把字符串中每个单词的首字符转换为大写。 ucwords ( string $str ) : string 参数描述 str必需。规定要转换的字符串。 返回值: 返回把字符串中每个单词的首字符转换为大写。 实例: echo ucwords("hello world!"); / 阅读全文
posted @ 2021-01-22 09:06 梦中程序员 阅读(58) 评论(0) 推荐(0)
摘要: strtolower () 函数把所有字符转换为小写。 strtolower( string $str ) : string 参数描述 str必需。规定要转换的字符串。 返回值: 返回把字符串中所有字符转换为小写。 实例: echo strtolower("HELLO WORLD"); //hell 阅读全文
posted @ 2021-01-21 12:57 梦中程序员 阅读(58) 评论(0) 推荐(0)
摘要: strtoupper () 函数把所有字符转换为大写。 strtoupper( string $str ) : string 参数描述 str必需。规定要转换的字符串。 返回值: 返回把字符串中所有字符转换为大写。 实例: echo strtoupper("hello world"); //HELL 阅读全文
posted @ 2021-01-21 12:54 梦中程序员 阅读(30) 评论(0) 推荐(0)
摘要: substr 函数返回字符串的一部分。注释:如果 start 参数是负数且 length 小于或等于 start,则 length 为 0。 string substr (string $string , int $start [, int $length ]) 参数描述 string 输入字符串。 阅读全文
posted @ 2021-01-19 08:39 梦中程序员 阅读(124) 评论(0) 推荐(0)
摘要: strstr() 查找字符串的首次出现。 string strstr ( string $haystack, mixed $needle[, bool $before_needle=false]) 说明:返回 haystack 字符串从 needle 第一次出现的位置开始到 haystack 结尾的 阅读全文
posted @ 2021-01-18 08:32 梦中程序员 阅读(80) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 下一页