Posted by iblamemicrosoft on 11/21/52 11:51
What I'm trying to do is check if the dates in the array $holi[]
matches $evalday (not in an array)
but with limited success the data in the array is:
$holi[1] = 2006-06-20;
$holi[2] = 2006-06-28;
$holi[3] = 2006-07-19;
$holi[4] = 2008-06-24;
$holi[5] = 2006-06-30;
$evalday = date("Y-m-d", strtotime("+ 1 days");
if($evalday == $holi) {
echo("For the purpose of this excercise, $evalday is a holiday");
}
Thanks in advance.
Navigation:
[Reply to this message]
|