Get day of year in PHP
Description
The following code shows how to get day of year.
Example
<?php/*from w ww . j a v a2 s .c o m*/
$date = new Date();
$date->setDMY(4,7,1776);
echo $date->getDayOfYear();
?>
The following code shows how to get day of year.
<?php/*from w ww . j a v a2 s .c o m*/
$date = new Date();
$date->setDMY(4,7,1776);
echo $date->getDayOfYear();
?>