- print_r: documentation ( source)
- array_filter: documentation ( source)
- strtotime: documentation ( source)
<?php
$dates = array("2013-12-24","2013-12-25","2014-12-24","2013-12-27");
$start = '2013-12-25';
$end = '2013-12-26';
$dates_in_range = array_filter($dates, function($date) {
//global $start;
//global $end;
return (strtotime($date) >= strtotime($start) and strtotime($date) <= strtotime($end));
});
print_r($dates_in_range);