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 |
What are the new features in php 7?
Why do we use javascript in php?
What is if isset ($_ post submit )) in php?
How to take a substring from a given string?
What is php beginner?
Why do you need php?
How is traits used in php?
What is the Pipe Symbol represented?
Does php support multiple inheritance?
1. Write a function to swap two values ? $a = 10; $b = 20; echo $a, $b; swap(); // If u want u can pass parameters echo $a, $b; // It should print 20 , 10
14 Answers Aquasol, Infosys, TCS, Torque Infotech,
What is difference between strstr() and stristr() in PHP?
How do you use an array in excel?