Answers for "show year now in php"

PHP
4

get current year php

// current year
<?php echo date("Y"); ?>
// current month
<?php echo date("m"); ?>
// current day
<?php echo date("d"); ?>
Posted by: Guest on November-17-2020
1

how to get the current year in php

Get the current year using PHP:
  
<?php 
	echo date("Y"); 
?>
Posted by: Guest on October-19-2020

Browse Popular Code Answers by Language