Home of web learners

www.webn3rd.com

PHP has option to use date and time for your website

Lets start

<?php
echo date("Y")
?>

output

2020

We use date function to show year here,in date function for different argument it show different result,here we use Y,which shows us full numerical current year

lets use another thing in date function

<?php
echo date("l")
?>

output

Tuesday

we use l argument here and it shows current day

webn3rd.com

About webn3rd