Today i crossed across a Question about Multiplying a Time using PHP Here’s the Link
After a small research 5 minutes i wrote the answer
Here is what you should do
Step 1 : Convert your hours into seconds
Step 2 : Multiply it directly
Step 3 : Convert the seconds back to hours, And you’re done !
So Your final code shall be
And Everything goes, ok.. After few minutes the OP commented me, “If i Multiply 25 times” then he can’t able to get the expected output. When i test i found that the gmdate gives the ouput like 1 day xx hours xx minutes and xx seconds Mean while the User Rizer question me with this link, that the OP seems to get the answer in raw time, Then again i started the research and ended with the code which is made upon DateTime