$firstDayTime = strtotime(date('Y-m-01',$time));
 $lastDayTime = strtotime(date('Y-m-t',$time));
 $num = 0;
 $startWday = date('D',$time);
 for($currentTime = $firstDayTime; $current<= $lastDayTime; $currentTime +=$oneDayTime ){
 $wDay = date('D',$currentTime);
 if($startWday == $wDay){
 $num++;
 }
 if($currentTime==$time){
 break;
 }
 }
 $wday = strtolower(date('D',$time));
 echo $num.':'.$wDay;