My Books

Text Processing with JavaScript

Solve complex text validation, extraction, and modification problems efficiently in JavaScript.

Modern Async JavaScript

Delve into async features of JavaScript from ES2020 through ESNext. Start building custom asynchronous iterators and generators, and more for fast, lean code.

JavaScript Brain Teasers

Ready to test your JavaScript skills? Challenge yourself with these brain-teasing puzzles, supercharge your learning journey, and emerge as a JavaScript pro.

Automatic copyright updater in PHP

To update your copyright notice in PHP all you have to do is to pass “y” to date() function. The following PHP code demonstrates how to use the date() function to generate the current year automatically.

<p>&copy; 2006&#8211;<?php echo date('Y'); ?> Faraz Kelhini</p>

&copy represents @, and #8211 represents dash in html.

Have your say