I want the loop
to run 10 times, and that every loop
the $tempo
variable that has the date / em> minute and seconds receive +10 seconds, but in the final result does not appear in fragmented seconds, 59, I want only integers, or more specifically 00
, 10
, 20
, 30
, 40
, 50
.
The result of the variable $tempo
in loop
should be something like:
2001_12_15_001510
2001_12_15_001520
2001_12_15_001530
2001_12_15_001540
2001_12_15_001550
2001_12_15_001600
2001_12_15_001610
2001_12_15_001620
2001_12_15_001630
2001_12_15_001640
I could only get the seconds in integers without the loop with
if(in_array($segundos, range("00", "09"))){
$segundos = "00";
}