随笔分类 -  PHP

摘要:1 each_disNums = intval($each_disNums); 33 $this->nums = intval($nums); 34 if (!$current_page) { 35 $this->current_page = 1; 36 } else { 37 $this->current_page = intval($current_page); 38 } 39 $this->sub_pages = intval($sub_pages); 40... 阅读全文
posted @ 2014-01-02 18:10 hlb 阅读(401) 评论(0) 推荐(0)
摘要:\js\ajax.js//图片形式状态切换function toggle(url,action,obj,str,id){//状态转换/obj-当前对象/str-传入类型字符串/id-传入ID $.ajax({ type: "post", url: url, cache: false, data: "id="+id+"&action="+action+"&str="+str+"&t="+tmp.toString(38), success: function(data){ i 阅读全文
posted @ 2013-12-07 10:27 hlb 阅读(553) 评论(0) 推荐(0)
摘要:1 PHP 中由于数组和字符串这两种变量类型是如此常用,以至于 PHP 具有两个函数,可以在字符串和数组之间互相进行转换。 2 $array=explode(separator,$string); 3 $string=implode(glue,$array); 4 使用和理解这两个函数的关键之处是分隔符(separator)和胶合符(glue)关系。当把一个数组转换成一个字符串时,将会设置胶合符——将被插入到生成字符串中的数组值之间的字符或代码。相反,当把字符串转换成数组时,要指定分隔符,它用于标记什么应该变成独立数组元素。例如,以字符串开始: 5 $s1=’Mon-Tue-... 阅读全文
posted @ 2013-12-07 10:18 hlb 阅读(569) 评论(0) 推荐(0)
摘要:1 9 ">10 阅读全文
posted @ 2013-12-07 10:10 hlb 阅读(487) 评论(0) 推荐(0)
摘要:1 15 16 17 18 阅读全文
posted @ 2013-12-07 10:00 hlb 阅读(383) 评论(0) 推荐(0)
摘要:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 产品分类 29 30 31 32 33 34 35 36 37 38 39 40 41 ... 阅读全文
posted @ 2013-07-17 15:07 hlb 阅读(401) 评论(0) 推荐(0)