Comment mettre l'année (automatique) actuelle au pied de la page en phpd de la

Asked  Jun 01, 09:59 am 639 Views Add Your Answer
Asked  Jun 01, 09:59 am
Php
0 Dislikes
0 Comments

1 Answers

Added  Sep 05, 12:35 pm

Copy the following code snippet and then paste it at the bottom of the functions.

function current_year() {
   $year = date('Y');
   return $year;
}

Add this code anywhere

<?php
echo current_year();
?>

1 Likes 0 Dislikes
0 Comments
×