Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $boolTimeFound = false;
- $intCounter = count($schedule);
- $i=0;
- while($i<$intCounter && !$boolTimeFound){
- if($date < $schedule[$i]['start'] && $date < $schedule[$i]['end']){
- $sched = $schedule[$i]['times'];
- $boolTimeFound = true;
- }
- ++$i;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement