add(new DateInterval('P00D'));, 4.$currentDT->getTimezone(new DateTimezone('UTC'));">
MCQs > IT & Programming > PHP > Which would produce an error: $currentDT=new DateTime();

PHP MCQs

Which of the following would produce an error: $currentDT=new DateTime(); 

Answer

Correct Answer: $newDT=clone $currentDT;

Explanation:

Note: This Question is unanswered, help us to find answer for this one

PHP Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

PHP Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it