<?php $a = new DateTime('2014-01-01'); $b = new DateTime('2014-01-02'); $c = new DateTime('2014-01-03'); $arr = array($a, $b, $c); $date = new DateTime('2014-01-05'); echo in_array($date, $arr);
You have javascript disabled. You will not be able to edit any code.