General Programming

How do I get the current year using PHP?   

#php #programming #coding


Marc Perez
@mperez · Posted 07 Dec. 2022


Matrix Codex
@codex · Posted 07 Dec. 2022

echo date("Y");

OR

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


Please login to add your answer