write code to find the date difference b/w two given date
using PHP not MYSQL function?

Answer Posted / rajan

$a= gregoriantojd(1,30,2009);
$b= gregoriantojd(1,5,2009);
echo $a-$b;

Is This Answer Correct ?    6 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the integer?

671


What is the use of is_array() and in_array()?

642


What are advantages of .htaccess?

622


Explain how is it possible to set an infinite execution time for php script?

588


What are the features of object-oriented programming in php?

584






What are the rules for naming a php variable?

637


How do you debug php?

649


How to redirect https to http url through .htaccess?

583


Why php script is not running in browser?

633


Which function is used to strip whitespace?

527


Does php have block scope?

596


Tell me how to create a text file in php?

637


How do I check if a given variable is empty?

596


Is php a dying language?

634


Write a program to find no of days between two dates in php?

601