calculate time difference php
$time1 = new DateTime('09:00:59');
$time2 = new DateTime('09:01:00');
$interval = $time1->diff($time2);
echo $interval->format('%s second(s)');
Result: 1 second(s)
Also in PHP:
- array has not key in php
- date(Y m d) php
- base64 img com php
- datetime in php
- Class 'App\Http\Controllers\Session' not found
- TreeBuilder::getRootNode()" before creating the root node is not supported, migrate to the new constructor signature instead.
- date format ph
- Laravel 8 KET TO LONG ERROR
- different time formats in php
- display_errors php
- array reverse in php example
- blade if
- divided by 3 php
- calculate time difference php
- Allowed memory size of 1610612736 bytes exhausted xampp
- catch in php
- 2 time between add php
- create a new laravel folder
- TIME 24 FORMAT PHP
- comment split une chaine de caratere en php
- THROW EXPECTION PHP
- error show all php
- code to set error for du[licate entry in php
- debian install apache php