![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
php
文章平均质量分 54
wc1217
无所谓的一切的无所谓的所谓的无所谓...
展开
-
php版getFinalKey
echo getFinalKey('f9f3c542904bfcd5106bc9c525310a47aedaf692d918ebb0',1150);function getFinalKey($gKey, $gScore){ if(!$gKey || !isset($gScore)){ return (null); } // end if if(strle原创 2012-01-11 10:43:59 · 546 阅读 · 0 评论 -
mb_chunk_split_支持宽字符的分割
支持宽字符的分割,(把字符串分割为一连串更小的部分)<?php/** * 分割字符串 * @param String $str 要分割的字符串 * @param int $length 指定的长度 * @param String $end 在分割后的字符串块追加的内容 */function mb_chunk_split($string, $le原创 2012-03-02 16:28:57 · 1813 阅读 · 0 评论 -
PHP中英文混合截段
默认中文占两个英的宽度..(为解决截取中英文宽度很难一至的问题...主要为排序)以下为处理函数..不是太佳..望高手指教<?phpfunction mb_str_split($string){ # Split at all position not after the start: ^ # and not before the end: $ //$strin原创 2012-03-05 16:56:52 · 1124 阅读 · 0 评论 -
Curl批量打开网址的PHP类,curl_multi_init
<?php/* * curl_multi 经本人测试,大于四个网址的时候要比Foreach循环快.. * by wc1217 */class curl_multi{ //Curl句柄 //private $curl_handle = null; //网址 private $url_list = array(); //参数 privat原创 2012-03-08 14:46:31 · 3426 阅读 · 0 评论 -
office(doc,xls,txt,pdf,ppt)文档在线预览及转换(office2pdf) - PHP版
最近项目想用到"文档在线预览",参考了一下 使用OpenOffice.org将各类文档转为PDF 本想用OpenOffice的类, 但OpenOffice的类太复杂了..后来想到了Aspose , Google docs(谷歌文档)也是用的这个商业解决方案..当然还有PSVIEW 大家有兴趣研究下..是开源的但是在偷窃的心理作用下..决定利用了下Google的优良服务.演示原创 2012-03-09 13:30:00 · 8841 阅读 · 2 评论