Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $titleInt = (int) $title; //convert title to integer
- if ($titleInt === $weekNumberInt ) { //check if roster is made for current week
- $description = $mondayDate .'-'. $sundayDate . '(' . $monthResult . ')';
- }
- else if ($titleInt === ($NextWeekNumberInt)) { //check if roster is made for Next week
- $description = $nextMondayDate .'-'. $nextSundayDate . '(' . $monthResult . ')';
- }
- else if ($titleInt === ($NextWeekNumberInt+1)) { //check if roster is made for Next week
- $description = $mondayDateTwoWeekAhead .'-'. $sundayDateTwoWeekAhead . '(' . $monthResult . ')';
- }
- else if ($titleInt === ($NextWeekNumberInt+2)) { //check if roster is made for Next week
- $description = $mondayDateThreeWeekAhead .'-'. $sundayDateThreeWeekAhead . '(' . $monthResult . ')';
- }
- else if ($titleInt === ($NextWeekNumberInt+3)) { //check if roster is made for Next week
- $description = $mondayDateFourWeekAhead.'-'. $sundayDateFourWeekAhead . '(' . $monthResult . ')';
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement