上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页
  2013年5月17日
摘要: <?//asort ksort 对关联数组进行排序 asort 按照value 升序排列 ksort 按照key值升序排列//sort 对非关联数组进行升序排列 //反向排序 分别为rsort arsort krsort$a=array('1'=>"3",'5'=>"5",'3'=>'1');asort($a);print_r($a);?> 阅读全文
posted @ 2013-05-17 10:00 ijoanne 阅读(146) 评论(0) 推荐(0)
  2013年5月10日
摘要: <?phpfunction arrayRecursive(&$array, $function, $apply_to_keys_also = false){ static $recursive_counter = 0; if (++$recursive_counter > 1000) { die('possible deep recursion attack'); } foreach ($array as $key => $value) { if (is_array($value)) { arrayRecursive($... 阅读全文
posted @ 2013-05-10 17:19 ijoanne 阅读(409) 评论(0) 推荐(0)
  2013年5月8日
摘要: 对于不是经常变动的数据 尽量写入缓存用以减少 调用数据库的次数 缓解数据库压力 阅读全文
posted @ 2013-05-08 16:48 ijoanne 阅读(117) 评论(0) 推荐(0)
  2013年5月7日
摘要: isset 检测变量是否存在Is_Numeric 检测变量是否为一个数字htmlspecialchars() 函数把一些预定义的字符转换为 HTML 实体。 阅读全文
posted @ 2013-05-07 11:47 ijoanne 阅读(155) 评论(0) 推荐(0)
  2013年4月28日
摘要: 表A记录如下: 表B记录如下:aID aNum bID bName1 a20050111 1 20060324012 a20050112 2 20060324023 a20050113 3 20060324034 a20050114 4 20060324045 a20050115 8 2006032408实验如下:1.left joinsql语句如下:SELECT * FROM A LEFT J... 阅读全文
posted @ 2013-04-28 10:35 ijoanne 阅读(204) 评论(0) 推荐(0)
  2013年4月24日
摘要: 域名配置 -- 其他选项菜单--- 域名管理之后配置host 其他选项菜单 -- 打开host(O) 添加127.0.0.1 www.xxxxx.com重启phpmystudy 既可 阅读全文
posted @ 2013-04-24 11:39 ijoanne 阅读(212) 评论(0) 推荐(0)
  2013年4月21日
摘要: <?php/** * A base model with a series of CRUD functions (powered by CI's query builder), * validation-in-model support, event callbacks and more. * * @link http://github.com/jamierumbelow/codeigniter-base-model * @copyright Copyright (c) 2012, Jamie Rumbelow <http://jamierumbelow.net> * 阅读全文
posted @ 2013-04-21 22:06 ijoanne 阅读(358) 评论(0) 推荐(0)
  2013年4月20日
摘要: array_combine—创建一个数组,用一个数组的值作为其键名,另一个数组的值作为其值 阅读全文
posted @ 2013-04-20 12:07 ijoanne 阅读(356) 评论(0) 推荐(0)
  2013年4月19日
摘要: 打开网络的 Socket 链接。 语法: resuce fsockopen(string hostname, int port, int [errno], string [errstr], int [timeout]);返回值: 资源;函数种类: 网络系统;内容说明: 目前这个函数提供两个 Socket 资料流界面,分别为 Internet 用的 AF_INET 及 Unix 用的 AF_UNIX。在 Internet 中,参数 hostname 及 port 分别代表网址及端口号。在 UNIX 中,参数hostname 表示到 socket 的路径,port 配置为 0。timeout可.. 阅读全文
posted @ 2013-04-19 00:21 ijoanne 阅读(173) 评论(0) 推荐(0)
  2013年4月18日
摘要: <table><tr><td>11</td><td >12</td><td>13</td></tr><tr><td>21</td><td >22</td><td>23</td></tr><tr><td>31</td><td >32</td><td>33</td></tr></table> 阅读全文
posted @ 2013-04-18 14:31 ijoanne 阅读(501) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 下一页