1

I have a php code as shown below in which I want to unset JSON object array only once in a month in php.

php code:

if((date('j') == 1) && (date('H:i:s')=="12:00:00")) {unset($whatever_you_want_to_unset);}

The above php code is inside the file abc.php

Problem Statement:

I am wondering if there is any way I can run the code even without on page load.

The reason why I am saying "without on page load" because I might not open the page on 1st every month at 12:00:00

sheldon100
  • 21
  • 7

0 Answers0