I need to make these array´s abit smaller inside
Can someone help me with a code to reduce the coding of these array´s?
Shouldnt need all this coding, dont u think?.
And can someone tell me if this can work in practice?
Code: Select all
$periods array("00:30", "01:30", "02:30", "03:30", "04:30", "05:30", "06:30", "07:30", "08:30", "09:30", "10:30", "11:30", "12:30", "13:30", "14:30", "15:30", "16:30", "17:30", "18:30", "19:30", "20:30", "21:30", "22:30", "23:30")
$today = date("H:i");
if $today = $periods then
{
uppdate..... pengar=$pengar + 30000
}
on my second "project i need to make a countdown....
so saying like when date("i")
so that when date turn a minute it will go down one like:
$time = 60
$time = $time - 1
untill $time = 0 then start over when a minute has passed...
-Thanks in advance
-Thomas