skip to Main Content
Menu

PHP compare time

Ever had the need to compare time.. Well here’s a barebone way of doing it.

if (time() >= strtotime("14:08:10")) {
echo "ok";
}

The above code was used to check for time whether to show or not to show the page..

Alphonse

Editorial Staff at ETN Multimedia is led by Alphonse Tan. Page maintained by Alphonse Tan

Back To Top