I have 4 keys and I want to change the key value after 6 hours.
That means after every 6 hours function will get the next key from array or some .txt file and assign it to the script.
Right now I am using random function for that but I want to use the time interval function
$random = array('key1','key2','key3','key4');
$key = $random[array_rand($random, 1)];