上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 47 下一页
  2016年1月20日
摘要: From:http://www.cnblogs.com/xiaochaohuashengmi/archive/2011/09/21/2183157.htmlphp的的func_num_args、func_get_arg和func_get_args都是返回函数实参相关的函数。func_num_args... 阅读全文
posted @ 2016-01-20 14:36 清清飞扬 阅读(287) 评论(1) 推荐(0) 编辑
摘要: From:http://www.cnblogs.com/lwbqqyumidi/archive/2013/01/31/2887188.htmlPHP中array_multisort可以用来一次对多个数组进行排序,或者根据某一维或多维对多维数组进行排序。关联(string)键名保持不变,但数字键名会被... 阅读全文
posted @ 2016-01-20 00:17 清清飞扬 阅读(762) 评论(0) 推荐(0) 编辑
  2016年1月6日
摘要: "joe$i", 'age' => 23 + $i, ); $this->userCache[] = $user; } } public function displayArray($arr = '') { if( gettype($arr) !== 'array' ) $a... 阅读全文
posted @ 2016-01-06 17:31 清清飞扬 阅读(293) 评论(0) 推荐(0) 编辑
  2015年12月29日
摘要: From:http://blog.csdn.net/happy664618843/article/details/5861138public function strrev($str){ $newstr=''; $len=strlen($str); for($i=$len;$i>=0;$i--)... 阅读全文
posted @ 2015-12-29 16:22 清清飞扬 阅读(3553) 评论(0) 推荐(0) 编辑
摘要: From:http://www.cnblogs.com/yhyjy/archive/2012/02/22/2363008.html原字符串1,2,3,4,5,6,去掉最后一个字符",",最终结果为1,2,3,4,5,6代码如下:$str="1,2,3,4,5,6,";$newstr=substr($... 阅读全文
posted @ 2015-12-29 11:22 清清飞扬 阅读(220) 评论(0) 推荐(0) 编辑
  2015年12月23日
摘要: From:http://ju.outofmemory.cn/entry/80021我原来以为PHP中的and和&&是一样的, 只是写法上为了可读性和美观, 事实上我错了. 这里面深藏了一个坑!看以下代码:$bA = true;$bB = false;$b1 = $bA and $bB;$b2 = $... 阅读全文
posted @ 2015-12-23 21:07 清清飞扬 阅读(1673) 评论(0) 推荐(0) 编辑
  2015年12月17日
摘要: From:http://www.php100.com/cover/php/2395.htmlusort(PHP 4, PHP 5)usort—使用用户自定义的比较函数对数组中的值进行排序说明boolusort(array&$array,callback$cmp_function)本函数将用用户自定义... 阅读全文
posted @ 2015-12-17 20:22 清清飞扬 阅读(2616) 评论(0) 推荐(0) 编辑
  2015年12月2日
摘要: From:http://blog.csdn.net/anda0109/article/details/466553011、修改php.ini,打开extension=php_sockets.dll2、服务端程序SocketServer.php[php] view plaincopyprint?3、客... 阅读全文
posted @ 2015-12-02 23:58 清清飞扬 阅读(1821) 评论(0) 推荐(0) 编辑
  2015年11月29日
摘要: From:http://blog.csdn.net/love__coder/article/details/8691679通过前面几篇blog,我们应该对redis有个大致的认识,这里再讲解下,php怎么连接redis服务器进行数据读写?1、安装php扩展a)安装php扩展phpredis:[pla... 阅读全文
posted @ 2015-11-29 23:12 清清飞扬 阅读(490) 评论(0) 推荐(0) 编辑
摘要: From:http://www.runoob.com/redis/redis-php.html安装开始在 PHP 中使用 Redis 前, 我们需要确保已经安装了 redis 服务及 PHP redis 驱动,且你的机器上能正常使用 PHP。 接下来让我们安装 PHP redis 驱动:下载地址为:... 阅读全文
posted @ 2015-11-29 23:11 清清飞扬 阅读(201) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 47 下一页