Ciao a tutti. So poco di PHP e vorrei togliermi un dubbio.
Ho questo script:
e vorrei capire....codice:$i = date("w"); // This equals the numerical value of the day of the week. e.g.; Monday = 1, Tuesday = 2 etc... $x = date("G"); // This equals the 24-hour format of an hour without leading zeros $y = date("Hi"); // This equals the 24-hour format of an hour without leading zeros switch ($i) { case "1": //Monday //------------------------------- Palinsesto Lunedi --------------------------- //------------------------------- Lunedi----------------------------- if ($x < 1.30 ) { print" <img src=images/jock_pics/onair.gif> <span class=name>Mxt metal never die</span> <img src=images/jock_pics/temporaneo.jpg> <span class=time>Metal</span> "; } //------------------------------- Lunedi----------------------------- elseif ($x < 7 ) { print" <img src=images/jock_pics/onair.gif> <span class=name>Mxt by night</span> <img src=images/jock_pics/temporaneo.jpg> <span class=time></span>Notte MXT "; } etc etc etc
$x < 1.30 significa fino all'1.30?
E più precisamente significa che dall'1.30 alle 7 =$x < 7 appare lo script successivo? (e via dicendo per ogni numero preceduto da <?)
Grazie!