Im trying to add seconds to a result from a variable
So what happens is:
for example:
$eta = "14:12:00"; // this is an example from another result
then i have
$newseconds = "6" //where 6 is the seconds which randomly change
Now what i want to get working is that the newseconds whill be added to the eta
so that the end result will be 14:12:06
How can i do this?
I now have something like
echo date('H:i:s',strtotime('+12 seconds',strtotime($eta))).PHP_EOL
but the +12 seconds should then be coming from newseconds...
Thank you for the help