In the following PHP 7.1 code, which of the given code statements should replace ??? to print the current year as output in the numeric format, i.e. 2017?
$date_T = new DateTime();
???
?>
Correct Answer:
echo (clone $date_T)->format('Y');
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More PHP 5 MCQ Questions