date function in php 8 code example
Example 1: php get current year
$currentYear=date("Y");//2019
Example 2: php full day name
date("l",time()) // LOWER CASE L
$currentYear=date("Y");//2019
date("l",time()) // LOWER CASE L