我有一系列日期:从和到'sie:
array(
[0] => array('from' => '19-01-2000' 'to' => '20-01-2000')
[1] => array('from' => '20-01-2000' 'to' => '21-01-2000')
[2] => array('from' => '21-01-2000' 'to' => '22-01-2000')
[3] => array('from' => '23-01-2000' 'to' => '24-01-2000')
[4] => array('from' => '24-01-2000' 'to' => '25-01-2000')
)
我正在尝试找到一种方法来转换创建一个只有日期范围的新数组,即:
array(
[0] => array('from' => '19-01-2000' 'to' => '22-01-2000')
[1] => array('from' => '23-01-2000' 'to' => '25-01-2000')
)
有什么建议么?