write code to find the date difference b/w two given date
using PHP not MYSQL function?
Answer Posted / vipul dalwala
$noofdays = ceil(((strtotime($endDate) - strtotime
($startDate)) / (60*60*24)))
Is This Answer Correct ? | 13 Yes | 2 No |
Post New Answer View All Answers
Why php is used in html?
What are the Advantages and Application Areas of PHP?
Explain do you use composer? If yes, what benefits have you found in it?
What are arguments in php?
What are the differences between require and include?
How many data types are used by php?
Do you know what is the function func_num_args() used for?
If we login more than one browser windows at the same time with same user and after that we close one window, then is the session is exist to other windows or not? And if yes then why? If no then why?
What is the meaning of a final class and a final method?
What is the purpose of the '.myi' file extension? What do thes file contain?
What are the advantages of triggers in php?
Tell me what is the use of "enctype" attribute in a html form?
Does php support overloading?
What is the difference between nowdoc and heredoc?
Which php framework is best for security?