1 // 获取毫秒的时间戳 2 $time = explode ( " ", microtime () ); 3 $time = $time [1] . ($time [0] * 1000); 4 $time2 = explode ( ".", $time ); 5 $time = $ti...
分类:
Web程序 时间:
2015-02-09 19:55:46
阅读次数:
136
//o-W week 转换为普通日期 周的最后一天 public function weekToDate($oW){ $oW = explode("-", $oW); //拆分o-W周 为年和周数 $year = $oW[0]; //年 $wee...
分类:
Web程序 时间:
2015-01-25 16:30:46
阅读次数:
204
$ip = '192.168.6.1';
$mask = '255.255.2.0';
$sub_net = array();//子网
$ip_explode = explode('.', $ip);
$mask_explode = explode('.', $mask);
foreach ($ip...
分类:
Web程序 时间:
2015-01-24 18:41:14
阅读次数:
155
1 $arr_con=explode('_ueditor_page_break_tag_',$dy['art_content']);//分割内容 2 $pagenum=count($arr_con);//计算页数 3 //根据传值判断当前显示页数 4 if(intval($...
分类:
其他好文 时间:
2015-01-17 19:27:38
阅读次数:
194
file.txt
类型|所在目录|文件|大小|创建时间
File|C:\Program Files\Java\jre7\lib\zi\America\Indiana|Vevay|724|2014-10-13 09:36
File|C:\Program Files\Java\jre7\lib\zi\America\Indiana|Vincennes|884|2014-10-13 0...
分类:
编程语言 时间:
2015-01-14 15:34:06
阅读次数:
233
explode()的函数原型:array explode(string separator,string input [,int limit]); //[,int limit]是表示可选的意思参数描述separator必需。规定在哪里分割字符串。string必需。要分割的字符串。limit可选。规定...
分类:
其他好文 时间:
2015-01-12 12:53:19
阅读次数:
2676
$goods_id = (int)$goods_id; // 先从COOKIE中取出这前浏览过的商品 $goods = cookie('beforeViewGoods'); // 1,2,3,4,5 $goods = explode(',', $goods)...
分类:
编程语言 时间:
2015-01-08 02:06:55
阅读次数:
168
includes/cls_template.php line422 将 $tag_sel = array_shift(explode(" ", $tag)); 这句话拆开为两句。 $tag_exp = explode(' ', $tag); $tag_sel = array_shift($tag_e...
分类:
Web程序 时间:
2015-01-07 23:25:41
阅读次数:
253
function proStartTime() { $mtime1 = explode(" ", microtime()); $startTime = $mtime1[1] + $mtime1[0]; return $startTime; } function proEndTime($s...
分类:
Web程序 时间:
2014-12-25 16:19:57
阅读次数:
220
$test = "%u4E0A%u6D77%u9EC4%u6D66";//$test = '\u5e86\u91cd\u5e86'; //庆重庆$temp = explode('%u',$test);// 拆分成数组$rslt = array(); // 保存结果的数组array_shift($te...
分类:
Web程序 时间:
2014-12-23 16:57:24
阅读次数:
437