PHP bekommt das aktuelle Jahr
// get current year using php
<?php echo date("Y"); ?>
Neemesh
// get current year using php
<?php echo date("Y"); ?>
$currentYear=date("Y");//2019
$year = date("y",strtotime($mydate));
// current year
<?php echo date("Y"); ?>
// current month
<?php echo date("m"); ?>
// current day
<?php echo date("d"); ?>
Get the current year using PHP:
<?php
echo date("Y");
?>