Jump to content

Find earliest and latest times in an array... but...


johnsmith153

Recommended Posts

I need to find the earliest and latest times, but there must be at least 3 to count it.

 

$array[] = "09:00 - 15:00"

$array[] = "09:00 - 15:00"

$array[] = "09:00 - 15:00"

$array[] = "09:00 - 17:00"

$array[] = "09:00 - 15:30"

$array[] = "07:30 - 15:00"

$array[] = "07:00 - 12:00"

 

So the above would return 09:00 - 15:00

 

I thin would need to ensure that a maximum 4 hours inbetween, so I then get something like 10:00 - 14:00 returned

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.