php复习:字符串函数
摘要:
substr_replace($str,$relacement,$index,$length);substr_count("hello world","e");substr_count("hello world" ,"e",5,5);strpos($str,$replacement);stripos($str,$replacement);//不区分大小写strlen();str_word_count($string);//计算单词的个数str_word_count($string,1);//返回各个单词为元素的数组 阅读全文
posted @ 2012-06-13 20:42 为你而来 阅读(108) 评论(0) 推荐(0) 编辑