Pew Pew Laser Blog

Code. Glass art. Games. Baking. Cats. From Seattle, Washington and various sundry satellite locations.

Pew Pew Laser Blog Archives — by Blog ID

PHP Current Year.

3.5.2013

Here's a quick PHP snippet which will get the current year (from the PHP server) and display it along with a copyright symbol.

$currYear = date("Y");
echo "© " . $currYear;

Now you can finally stop updating your website's footer every January.

Permalink

Tags: code php web-development

Authorized users may log-in to leave a comment.

Last Blog: Used Video Games.

Next Blog: Toll House Cookies - Half Butter Test.