To do a comparison like this you need to do separate comparisons. If $d is the date you want to compare, $d1 is the earlier date, and $d2 is the later date, it would be something like:
if ((strtotime($d) > strtotime($d1)) and (strtotime($d) < strtotime($d2))) {
return true;
} else {
return false;
}