79354228

Date: 2025-01-14 07:28:20
Score: 1
Natty:
Report link

The old way and long syntax still works <?php echo date("Y"); ?>

But there is an alternative also, a short syntax for modern development

<?= date("Y"); ?>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Joseph Miller