get day ofyear php code example
Example 1: php get year
<?php echo date("Y"); ?>
Example 2: get day from date php
// Prints the day
echo date("l") . "<br>";
<?php echo date("Y"); ?>
// Prints the day
echo date("l") . "<br>";