Advertisement
gilzow

schedule

Jun 19th, 2014
223
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.27 KB | None | 0 0
  1. $boolTimeFound = false;
  2. $intCounter = count($schedule);
  3. $i=0;
  4. while($i<$intCounter && !$boolTimeFound){
  5.     if($date < $schedule[$i]['start'] && $date < $schedule[$i]['end']){
  6.         $sched = $schedule[$i]['times'];
  7.         $boolTimeFound = true;
  8.     }
  9.    
  10.     ++$i;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement