摘要: 1 阅读全文
posted @ 2014-02-28 20:07 再見理想 阅读(427) 评论(0) 推荐(0) 编辑
摘要: 1 function sortStr($str){ 2 3 $ary = str_split($str); 4 sort($ary); 5 $len = count($ary); 6 7 $arr = array(); 8 for($i=0; $i 9 ... 阅读全文
posted @ 2014-02-28 19:50 再見理想 阅读(333) 评论(0) 推荐(0) 编辑
摘要: 1 2 阅读全文
posted @ 2014-02-28 19:02 再見理想 阅读(810) 评论(0) 推荐(0) 编辑
摘要: 1 /** 2 * 3 * 实现思路:分页显示拆分 : 1...上页 12 13 14 15 [16] 17 18 19 20 ...100 下页 4 * 5 * function htmlPart1() : 上页 6 * function htmlPart2() : 1... 7 * function htmlPart3() : 12 13 14 15 [16] 17 18 19 20 8 * function htmlPart4() : ...100 9 * function htmlPart5() : 下页 10 * 11 * @param i... 阅读全文
posted @ 2014-02-28 18:52 再見理想 阅读(483) 评论(0) 推荐(0) 编辑
摘要: Js把URL中的参数解析为一个对象 阅读全文
posted @ 2014-02-28 18:43 再見理想 阅读(2003) 评论(0) 推荐(0) 编辑
摘要: 1 // 隐藏电话的中间四位 2 echo parseMobile('15836365252'); 3 function parseMobile($mobile, $start = 4, $len = 4){ 4 $firstLen = $start - 1; 5 $lastLen = 11 - $len - $firstLen; 6 $preg = '/(\d{'.$firstLen.'})(\d{'.$lastLen.'})/'; 7 return preg_replace($preg, '$1****$3', 阅读全文
posted @ 2014-02-28 18:31 再見理想 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 1. 依次打开:Files => Settings => External Tools => +(add)2.填写信息:name:phpDoc; group:PHP插件; desc:php文档生成 Tools settings:Program: C:\wamp\bin\php\php5.3.13\phpdoc.batParameters: -d "E:\www.domain.com\Application\test" -t "E:\phpDocHtml\test" -o "HTML:frames:l0l33t"Wor 阅读全文
posted @ 2014-02-28 14:27 再見理想 阅读(529) 评论(0) 推荐(0) 编辑
摘要: 一、修改httpd.conf1.启用apache的虚拟主机功能#LoadModulevhost_alias_modulemodules/mod_vhost_alias.so2.导入虚拟主机配置#Include conf/extra/httpd-vhosts.conf二、修改httpd-vhosts.confNameVirtualHost *:80 ServerName www.test.com ServerAlias test.test.com my.test.com DocumentRoot "D:/www" Order allow,deny ... 阅读全文
posted @ 2014-02-28 13:55 再見理想 阅读(250) 评论(0) 推荐(0) 编辑