Wednesday, December 25, 2024
728x90
HomeTechnologyPHP Code to Display Year

PHP Code to Display Year

A new year is almost year and I’m getting reminded to update my websites with the copyright years at the bottom…you know the Copyright 2000-current year.

Instead of manually doing this ever year, I decided to put in a snippet of PHP code to cover all my bases.

Here’s the code:

<? print(Date(“Y”)); ?>

Enjoy! And Happy New Year!

Previous article
Next article
Edel Alon
Edel Alonhttps://edelalon.com
Edel-Ryan Alon is a starving musician, failed artist, connoisseur of fine foods, aspiring entrepreneur, husband, father of two, geek by day, cook by night, and an all around great guy.
RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.

- Advertisment -spot_img

Read More

Check These Out

00:01:12

Removing Spaces Linux/Mac

Kung Pao Chicken

Thanks for Recycling COVID

FUNdraising

2014 End of Year Review

The Prince – Los Angeles