Hello Guys,
Can anyone help me to get time difference in PHP?
For example:
<?php
$Start = "09:18 AM";
$End = "04:10 PM";
$diff = ????
Can anyone show the code for $diff? thanks in advance and more power.
Hello Guys,
Can anyone help me to get time difference in PHP?
For example:
<?php
$Start = "09:18 AM";
$End = "04:10 PM";
$diff = ????
Can anyone show the code for $diff? thanks in advance and more power.
RTM is the first procedure! Read it!
Then google is your friend!
http://www.php.net/manual/en/function.time.php#105547
http://stackoverflow.com/questions/365191/how-to-get-time-difference-in-minutes-in-php
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.