I am new to PHP and would like to compare a specific time with the current time. I have tried different tricks but nothing works for me.
 Eg.

```
$my_time = '2:00';
$active='';

//echo "The time is " . date("h:ia");die;
if (date('h:i') > date('h:i', strtotime($myTime))) {
    $active='Dinner';
    $dinner=1;
}
else
{
    $active='Lunch';
    $lunch=1;
}

```