随笔分类 - PHP
主要是优秀的PHP代码
摘要:/**作用:统计字符长度包括中文、英文、数字 * 参数:需要进行统计的字符串、编码格式目前系统统一使用UTF-8 * 修改记录:$str = "kds";echo sstrlen($str,'utf-8'); * */function sstrlen($str,$charset) { $n = 0;
阅读全文
摘要:$content = file_get_contents("http://www.doucube.com"); // or $lines = file("http://www.doucube.com"); // or readfile(http://www.doucube.com); 不过,这种做法
阅读全文

浙公网安备 33010602011771号