which function used to get the number of days between two
given dates in php



which function used to get the number of days between two given dates in php..

Answer / silambu_irtt

<?php
$days = (strtotime("2005-11-26") - strtotime("2005-11-20"))
/ (60 * 60 * 24);
print $days;
?>
This code print number of days between two dates

Is This Answer Correct ?    12 Yes 1 No

Post New Answer

More PHP Interview Questions

What is chrome logger?

0 Answers  


What is a stored procedure in mysql?

0 Answers  


Differences between get and post methods?

0 Answers  


how to open & closing opening period in fico

0 Answers   NS,


What should be the length of variable for SHA256?

0 Answers  






What is a string in r?

0 Answers  


Is laravel better than codeigniter?

0 Answers  


How can we destroy the session, how can we unset the variable of a session?

3 Answers  


Tell me what are sql injections, how do you prevent them and what are the best practices?

0 Answers  


List few sensible functions in PHP?

0 Answers  


How about integrating an iKode Newsletter Server at my independent Wordpress blog site? I just wanna visitort can subscribe my blog when they like it and I can send some interested articles or events to them regularly to establish good relationship.

1 Answers   iKode,


How do you access a get requests url parameter with php?

0 Answers  


Categories