how to create simple countdown in PHP?
You don’t unless it is a static countdown that updates on page reload. You would need to use JavaScript.
1 Like
Remember also, PHP is SERVER-SIDE only. It can NOT run int the browser and therefore can not really count down. The browser is CLIENT-SIDE, so as Benanmen said, use JS. It is real easy in JS. You just create a timer that counts seconds and a variable counter and display the countdown. Easy to do.