Output of the current year in php and twig

With the onset of the new year, tasks appeared to replace its value on old sites, where they were written manually (for example, in the copyright line).

A small note on the conclusion of the year on php

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

and twig

{{ 'now' | date('Y') }}

Plain text

  • No HTML tags allowed.
  • Lines and paragraphs break automatically.
  • Web page addresses and email addresses turn into links automatically.
The comment language code.