Settings | Sign in | Sign up

There is currently 1 post.

备份

Floor 1 巨大八爪鱼 11/11/10 13:24
//排序
   foreach ($stfed as $i=>$v){
    //$stfed:昨天的全部活动,$stf:今天的全部活动
    //$i:活动编号,$v:活动显示序号
    if (!is_numeric($v)) continue; //若活动显示序号不是数字
    //若昨天的活动编号今天有,则对齐
    //$i就是昨天的活动编号,首先判断今天有没有这个活动,没有的话就continue
    $Is=arraygetid($stf,$i); //键名
    if ($Is<0) continue; //若今天没有这个活动
    $IS=$str[$Is]; //今天这个活动的显示序号
    //$v:昨天这个活动的显示序号
    
    //对齐
   }

Content converter:

Reply the post
Content:
User: You are currently anonymous.
Captcha:
Unclear? Try another one.
©2010-2025 Purasbar Ver3.0 [Mobile] [Desktop]
Except where otherwise noted, content on this site is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported license.