get current year php
snippet in php

get current year php

user6358

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

php get current year

user2730

$currentYear=date("Y");//2019

php get current year

user2773

// get current year using php
<?php echo date("Y"); ?>

get current year php

user8632

// current year
<?php echo date("Y"); ?>
// current month
<?php echo date("m"); ?>
// current day
<?php echo date("d"); ?>