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 |
Explain different sorting function in php?
What is the purpose of destructor ?
What’s the difference between sort(), assort() and ksort? Under what circumstances would you use each of these?
!== represents what?
how to select the multiple data in selection button
What is an associative array?
How can you execute php script from the command line?
How to write comment in php?
What are the different ways to login to a remote server? Explain the me, advantages and disadvantages?
Where can I learn php?
List some array functions in php?
What changes I have to do in php.ini file for file uploading?