php question… how to check if something is between two values?

后端 未结 5 1856
你的背包
你的背包 2021-01-23 08:40

I know I\'m missing something easy here... I\'ve been trying different operators, but haven\'t been able to figure this out...

How do I go about checking to see if the

5条回答
  •  别那么骄傲
    2021-01-23 09:18

    Off the top of my head, I don't know of a date comparison operator in PHP, but I would use strtotime() on all three dates, then do simple mathematical comparisons.

    returns true.

提交回复
热议问题