Hi guys

Hope you can help me


My first loop creates the times


PHP Code:
$StartTime StrToTime("$start_date");
$EndTime StrToTime("$end_date");

for(
$i $StartTime$i <= $EndTime$i += 60 60){ //1 hour. I put the one so that it's easier for you to change to, say, 2 hours etc

$temp_array[] = $i;




I then need to run this array against it

PHP Code:
$check = array("08:30""10:30"); 
and if it matches then echo a statement. The problem I have it shows every time twice like this


07:30 Add Booking
07:30 Add Booking
08:30 Match
08:30 Add Booking
09:30 Add Booking
09:30 Add Booking
10:30 Add Booking
10:30 Match
11:30 Add Booking
11:30 Add Booking
12:30 Add Booking
12:30 Add Booking
13:30 Add Booking
13:30 Add Booking
14:30 Add Booking
14:30 Add Booking
15:30 Add Booking
15:30 Add Booking
16:30 Add Booking
16:30 Add Booking

It works but shows every time twice. How can I stop this but still the matched times


Thanks in advance