sunnyjey
Active Member
I have repeatable table :
day | opening_time | closing_time
1 | 08:00:00 | 18:00:00
2 | 09:00:00 | 15:00:00
I want to echo whether Business in Open or Closed at this moment comparing with $currentTime using PHP in custom detail template. With limited PHP knowledge, I tried for hours but couldn't figure out, may be I need to use foreach for:
$currentTime
in_array($day) | in_array($opening_time) | in_array($closing_time)
Looking for some help. Thank you in advance.
day | opening_time | closing_time
1 | 08:00:00 | 18:00:00
2 | 09:00:00 | 15:00:00
I want to echo whether Business in Open or Closed at this moment comparing with $currentTime using PHP in custom detail template. With limited PHP knowledge, I tried for hours but couldn't figure out, may be I need to use foreach for:
$currentTime
in_array($day) | in_array($opening_time) | in_array($closing_time)
Looking for some help. Thank you in advance.