最初の 1 つはdateExam (format date)、2 番目はstartTime、3 番目はendTimeとformat (time)の 3 つの属性があります。
それらの属性が現在の日付と時刻の間にある場合は、試験を表示してください。これらの属性をタイムスタンプに変換して比較しようとしましたが、失敗しました
編集 - コードが追加されました
$startDate = strtotime($dateExam.$startTime);
$endDate = strtotime($dateExam.$endTime);
if($startDate >= time() <= $endDate) {
echo'..............' ;
}